Browse Source

MPC8xx FEC driver: fix compiler warning.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Wolfgang Denk 17 years ago
parent
commit
08e99e1dd0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      cpu/mpc8xx/fec.c

+ 2 - 0
cpu/mpc8xx/fec.c

@@ -143,7 +143,9 @@ static int fec_send(struct eth_device* dev, volatile void *packet, int length);
 static int fec_recv(struct eth_device* dev);
 static int fec_init(struct eth_device* dev, bd_t * bd);
 static void fec_halt(struct eth_device* dev);
+#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
 static void __mii_init(void);
+#endif
 
 int fec_initialize(bd_t *bis)
 {