diff --git a/drivers/net/fec.c b/drivers/net/fec.c
index a515acccc61f7f64a7b19ecda6773e5af26131c2..682e7f0b558127eb845be5bd60e73e97cafb59cc 100644
--- a/drivers/net/fec.c
+++ b/drivers/net/fec.c
@@ -1240,6 +1240,7 @@ static void __inline__ fec_phy_ack_intr(void)
 	icrp = (volatile unsigned long *) (MCF_MBAR + MCFSIM_ICR1);
 	*icrp = 0x0d000000;
 }
+#endif
 
 #ifdef CONFIG_M5272
 static void __inline__ fec_get_mac(struct net_device *dev)