diff options
author | David S. Miller <davem@davemloft.net> | 2021-10-07 13:39:52 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-07 13:39:52 +0100 |
commit | 5a98dcf59abf68a7949bf1ff95765b946c1a4595 (patch) | |
tree | 4f60713328ebffc2d45cff1abfb1067ed944bd84 /drivers/net/wireless/ath | |
parent | 944b33ca7bc58fc1c3d6c14702a59e925033a268 (diff) | |
parent | 894b0fb0921529928d596c155894ecae5444712f (diff) | |
download | linux-5a98dcf59abf68a7949bf1ff95765b946c1a4595.tar.bz2 |
Merge branch 'dev_addr-fw-helpers'
Jakub Kicinski says:
====================
net: add a helpers for loading netdev->dev_addr from FW
We're trying to make all writes to netdev->dev_addr go via helpers.
A lot of places pass netdev->dev_addr to of_get_ethdev_address() and
device_get_ethdev_addr() so this set adds new functions which wrap
the functionality.
v2 performs suggested code moves, adds a couple additional clean ups
on the device property side, and an extra patch converting drivers
which can benefit from device_get_ethdev_address().
v3 removes OF_NET and corrects kdoc.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index 2f9be182fbfb..c21e05549f61 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -3224,7 +3224,7 @@ static int ath10k_core_probe_fw(struct ath10k *ar) ath10k_debug_print_board_info(ar); } - device_get_mac_address(ar->dev, ar->mac_addr, sizeof(ar->mac_addr)); + device_get_mac_address(ar->dev, ar->mac_addr); ret = ath10k_core_init_firmware_features(ar); if (ret) { |