ARM: orion5x: make dns323 independent of PHY support
authorArnd Bergmann <arnd@arndb.de>
Thu, 13 Mar 2014 14:31:44 +0000 (15:31 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 21 Mar 2014 17:25:59 +0000 (18:25 +0100)
commit32ff4971eca29a90719c88f949d14bf71ce8b655
treef120ea45e3cf52eb10f8fced2a14994b44f64fd7
parent9e1280419eebb48001c9fb078f00f15fa5abe4a6
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>
arch/arm/mach-orion5x/Kconfig
arch/arm/mach-orion5x/dns323-setup.c