of/net: Move of_get_mac_address() to a common source file.
authorDavid Daney <ddaney@caviumnetworks.com>
Tue, 26 Oct 2010 22:07:13 +0000 (15:07 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 1 Nov 2010 05:08:14 +0000 (01:08 -0400)
commit4b6ba8aacbb3185703b797286547d0f8f3859b02
treef4e04c3b19d6bf7c7429c0cf678c534838e2990d
parent3985c7ce85039adacdf882904ca096f091d39346
of/net: Move of_get_mac_address() to a common source file.

There are two identical implementations of of_get_mac_address(), one
each in arch/powerpc/kernel/prom_parse.c and
arch/microblaze/kernel/prom_parse.c.  Move this function to a new
common file of_net.{c,h} and adjust all the callers to include the new
header.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
[grant.likely@secretlab.ca: protect header with #ifdef]
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
14 files changed:
arch/microblaze/include/asm/prom.h
arch/microblaze/kernel/prom_parse.c
arch/powerpc/include/asm/prom.h
arch/powerpc/kernel/prom_parse.c
arch/powerpc/sysdev/mv64x60_dev.c
arch/powerpc/sysdev/tsi108_dev.c
drivers/net/fs_enet/fs_enet-main.c
drivers/net/gianfar.c
drivers/net/ucc_geth.c
drivers/net/xilinx_emaclite.c
drivers/of/Kconfig
drivers/of/Makefile
drivers/of/of_net.c [new file with mode: 0644]
include/linux/of_net.h [new file with mode: 0644]