diff options
-rw-r--r-- | arch/powerpc/platforms/82xx/Kconfig | 4 | ||||
-rw-r--r-- | arch/powerpc/platforms/82xx/ep8248e.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/82xx/Kconfig b/arch/powerpc/platforms/82xx/Kconfig index 7c7df4003820..994d1a959e20 100644 --- a/arch/powerpc/platforms/82xx/Kconfig +++ b/arch/powerpc/platforms/82xx/Kconfig | |||
@@ -30,8 +30,8 @@ config EP8248E | |||
30 | select 8272 | 30 | select 8272 |
31 | select 8260 | 31 | select 8260 |
32 | select FSL_SOC | 32 | select FSL_SOC |
33 | select PHYLIB | 33 | select PHYLIB if NETDEVICES |
34 | select MDIO_BITBANG | 34 | select MDIO_BITBANG if PHYLIB |
35 | help | 35 | help |
36 | This enables support for the Embedded Planet EP8248E board. | 36 | This enables support for the Embedded Planet EP8248E board. |
37 | 37 | ||
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 = { | |||
298 | static int __init declare_of_platform_devices(void) | 298 | static int __init declare_of_platform_devices(void) |
299 | { | 299 | { |
300 | of_platform_bus_probe(NULL, of_bus_ids, NULL); | 300 | of_platform_bus_probe(NULL, of_bus_ids, NULL); |
301 | platform_driver_register(&ep8248e_mdio_driver); | 301 | |
302 | if (IS_ENABLED(CONFIG_MDIO_BITBANG)) | ||
303 | platform_driver_register(&ep8248e_mdio_driver); | ||
302 | 304 | ||
303 | return 0; | 305 | return 0; |
304 | } | 306 | } |