aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2014-03-13 10:31:44 -0400
committerArnd Bergmann <arnd@arndb.de>2014-03-21 13:25:59 -0400
commit32ff4971eca29a90719c88f949d14bf71ce8b655 (patch)
treef120ea45e3cf52eb10f8fced2a14994b44f64fd7
parent9e1280419eebb48001c9fb078f00f15fa5abe4a6 (diff)
ARM: orion5x: make dns323 independent of PHY support
The D-Link DNS-323 machine tries to unconditionally select CONFIG_PHYLIB, but that has other dependencies that might not necessarily be enabled, causing random build errors. To work around this, this patch removes the 'select' statement and instead uses a compile-time check to skip the phy_register_fixup_for_uid() call if PHYLIB is not available in the kernel. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Jason Cooper <jason@lakedaemon.net> Cc: Andrew Lunn <andrew@lunn.ch> Cc: Gregory Clement <gregory.clement@free-electrons.com> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
-rw-r--r--arch/arm/mach-orion5x/Kconfig1
-rw-r--r--arch/arm/mach-orion5x/dns323-setup.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-orion5x/Kconfig b/arch/arm/mach-orion5x/Kconfig
index 2cb2f06c20f5..14f2cae4109c 100644
--- a/arch/arm/mach-orion5x/Kconfig
+++ b/arch/arm/mach-orion5x/Kconfig
@@ -33,7 +33,6 @@ config MACH_KUROBOX_PRO
33config MACH_DNS323 33config MACH_DNS323
34 bool "D-Link DNS-323" 34 bool "D-Link DNS-323"
35 select I2C_BOARDINFO 35 select I2C_BOARDINFO
36 select PHYLIB
37 help 36 help
38 Say 'Y' here if you want your kernel to support the 37 Say 'Y' here if you want your kernel to support the
39 D-Link DNS-323 platform. 38 D-Link DNS-323 platform.
diff --git a/arch/arm/mach-orion5x/dns323-setup.c b/arch/arm/mach-orion5x/dns323-setup.c
index 70974732cbf0..56edeab17b68 100644
--- a/arch/arm/mach-orion5x/dns323-setup.c
+++ b/arch/arm/mach-orion5x/dns323-setup.c
@@ -642,6 +642,8 @@ static void __init dns323_init(void)
642 platform_device_register_simple("dns323c-fan", 0, NULL, 0); 642 platform_device_register_simple("dns323c-fan", 0, NULL, 0);
643 643
644 /* Register fixup for the PHY LEDs */ 644 /* Register fixup for the PHY LEDs */
645 if (!IS_BUILTIN(CONFIG_PHYLIB))
646 break;
645 phy_register_fixup_for_uid(MARVELL_PHY_ID_88E1118, 647 phy_register_fixup_for_uid(MARVELL_PHY_ID_88E1118,
646 MARVELL_PHY_ID_MASK, 648 MARVELL_PHY_ID_MASK,
647 dns323c_phy_fixup); 649 dns323c_phy_fixup);