diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2016-07-25 21:30:10 -0700 |
---|---|---|
committer | Scott Wood <oss@buserror.net> | 2016-09-24 23:59:47 -0500 |
commit | 49bf9279cd3edb9d7178223f52d4656dbf2e46b5 (patch) | |
tree | f28967c200efc0d4c9ed7feb243a99a25aadda41 /arch/powerpc/platforms/82xx/ep8248e.c | |
parent | 93c4ea38a19815d59f2f2afe8414ba27288b8b70 (diff) | |
download | linux-49bf9279cd3edb9d7178223f52d4656dbf2e46b5.tar.bz2 |
powerpc/e8248e: Select PHYLIB only if NETDEVICES is enabled
Select PHYLIB only if NETDEVICES is enabled and MDIO_BITBANG only if
PHYLIB is present to avoid warnings from Kconfig.
To prevent undefined references during linking register MDIO driver only
if CONFIG_MDIO_BITBANG is enabled.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Scott Wood <oss@buserror.net>
Diffstat (limited to 'arch/powerpc/platforms/82xx/ep8248e.c')
-rw-r--r-- | arch/powerpc/platforms/82xx/ep8248e.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/82xx/ep8248e.c b/arch/powerpc/platforms/82xx/ep8248e.c index cdab847749e6..8fec050f2d5b 100644 --- a/arch/powerpc/platforms/82xx/ep8248e.c +++ b/arch/powerpc/platforms/82xx/ep8248e.c @@ -298,7 +298,9 @@ static const struct of_device_id of_bus_ids[] __initconst = { static int __init declare_of_platform_devices(void) { of_platform_bus_probe(NULL, of_bus_ids, NULL); - platform_driver_register(&ep8248e_mdio_driver); + + if (IS_ENABLED(CONFIG_MDIO_BITBANG)) + platform_driver_register(&ep8248e_mdio_driver); return 0; } |