diff options
author | 2015-11-05 11:34:57 -0500 | |
---|---|---|
committer | 2016-01-06 16:31:56 -0500 | |
commit | c7f5d105495a38ed09e70d825f75d9d7d5407264 (patch) | |
tree | 2c111b9bb5bb557400914e31839f0d41b1018da3 /net/unix/af_unix.c | |
parent | net: move ndo_features_check() close to ndo_start_xmit() (diff) | |
download | linux-c7f5d105495a38ed09e70d825f75d9d7d5407264.tar.gz linux-c7f5d105495a38ed09e70d825f75d9d7d5407264.tar.bz2 linux-c7f5d105495a38ed09e70d825f75d9d7d5407264.zip |
net: Add eth_platform_get_mac_address() helper.
A repeating pattern in drivers has become to use OF node information
and, if not found, platform specific host information to extract the
ethernet address for a given device.
Currently this is done with a call to of_get_mac_address() and then
some ifdef'd stuff for SPARC.
Consolidate this into a portable routine, and provide the
arch_get_platform_mac_address() weak function hook for all
architectures to implement if they want.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions