]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: Use fwnode_get_mac_address()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 23 Jul 2019 20:03:43 +0000 (23:03 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jul 2019 21:09:21 +0000 (14:09 -0700)
commit276df20ce8b7461f049acd8f5ccc1eac2814c958
treefa19407c74f0e87090d99fa35db9eb15e77c8931
parentd2ae4505ecbeaaca114b29cc495122a090d5a0aa
net: thunderx: Use fwnode_get_mac_address()

Replace the custom implementation with fwnode_get_mac_address,
which works on both DT and ACPI platforms.

While here, replace memcpy() by ether_addr_copy().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c