diff options
author | David Daney <ddaney@caviumnetworks.com> | 2010-10-26 18:07:13 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-11-01 01:08:14 -0400 |
commit | 4b6ba8aacbb3185703b797286547d0f8f3859b02 (patch) | |
tree | f4e04c3b19d6bf7c7429c0cf678c534838e2990d /drivers/of/Kconfig | |
parent | 3985c7ce85039adacdf882904ca096f091d39346 (diff) |
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>
Diffstat (limited to 'drivers/of/Kconfig')
-rw-r--r-- | drivers/of/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig index aa675ebd8eb3..e4b93a0a15d2 100644 --- a/drivers/of/Kconfig +++ b/drivers/of/Kconfig | |||
@@ -49,6 +49,10 @@ config OF_I2C | |||
49 | help | 49 | help |
50 | OpenFirmware I2C accessors | 50 | OpenFirmware I2C accessors |
51 | 51 | ||
52 | config OF_NET | ||
53 | depends on NETDEVICES | ||
54 | def_bool y | ||
55 | |||
52 | config OF_SPI | 56 | config OF_SPI |
53 | def_tristate SPI | 57 | def_tristate SPI |
54 | depends on SPI && !SPARC | 58 | depends on SPI && !SPARC |