arm: imx: prevent build error when CONFIG_FEC_MXC_PHYADDR is undefined
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 12 Oct 2015 08:15:31 +0000 (10:15 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 12 Oct 2015 08:15:31 +0000 (10:15 +0200)
arch/arm/imx-common/cpu.c

index 496d1b2..caa6ef6 100644 (file)
@@ -219,7 +219,7 @@ int cpu_eth_init(bd_t *bis)
 {
        int rc = -ENODEV;
 
-#if defined(CONFIG_FEC_MXC)
+#if defined(CONFIG_FEC_MXC) && defined(CONFIG_FEC_MXC_PHYADDR)
        rc = fecmxc_initialize(bis);
 #endif