summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/board-dt-sama5.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2013-06-05 11:50:43 +0200
committerNicolas Ferre <nicolas.ferre@atmel.com>2013-06-18 10:20:22 +0200
commit0580ed363789c8fc9844df6904f471ca6e82fa07 (patch)
tree796d78f5dcf24eaf0b43aefa24beb9e4849c3164 /arch/arm/mach-at91/board-dt-sama5.c
parentLinux 3.10-rc5 (diff)
downloadlinux-0580ed363789c8fc9844df6904f471ca6e82fa07.tar.xz
linux-0580ed363789c8fc9844df6904f471ca6e82fa07.zip
ARM: at91: Fix link breakage when !CONFIG_PHYLIB
Fixes: arch/arm/mach-at91/built-in.o: In function `ksz9021rn_phy_fixup': :(.text+0x1174): undefined reference to `mdiobus_write' :(.text+0x1188): undefined reference to `mdiobus_write' :(.text+0x119c): undefined reference to `mdiobus_write' :(.text+0x11b0): undefined reference to `mdiobus_write' arch/arm/mach-at91/built-in.o: In function `sama5_dt_device_init': :(.init.text+0x1e34): undefined reference to `phy_register_fixup_for_uid' when CONFIG_PHYLIB is not selected. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/board-dt-sama5.c')
-rw-r--r--arch/arm/mach-at91/board-dt-sama5.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/board-dt-sama5.c b/arch/arm/mach-at91/board-dt-sama5.c
index 705305e62bbc..ad95f6a23a28 100644
--- a/arch/arm/mach-at91/board-dt-sama5.c
+++ b/arch/arm/mach-at91/board-dt-sama5.c
@@ -62,7 +62,8 @@ static int ksz9021rn_phy_fixup(struct phy_device *phy)
static void __init sama5_dt_device_init(void)
{
- if (of_machine_is_compatible("atmel,sama5d3xcm"))
+ if (of_machine_is_compatible("atmel,sama5d3xcm") &&
+ IS_ENABLED(CONFIG_PHYLIB))
phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK,
ksz9021rn_phy_fixup);