Explorar el Código

m68k: eliminate a warning in cpu_init

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Masahiro Yamada hace 11 años
padre
commit
5744e53430
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      arch/m68k/cpu/mcf5445x/cpu_init.c

+ 1 - 1
arch/m68k/cpu/mcf5445x/cpu_init.c

@@ -364,9 +364,9 @@ void uart_port_conf(int port)
 int fecpin_setclear(struct eth_device *dev, int setclear)
 int fecpin_setclear(struct eth_device *dev, int setclear)
 {
 {
 	gpio_t *gpio = (gpio_t *) MMAP_GPIO;
 	gpio_t *gpio = (gpio_t *) MMAP_GPIO;
+#ifdef CONFIG_MCF5445x
 	struct fec_info_s *info = (struct fec_info_s *)dev->priv;
 	struct fec_info_s *info = (struct fec_info_s *)dev->priv;
 
 
-#ifdef CONFIG_MCF5445x
 	if (setclear) {
 	if (setclear) {
 #ifdef CONFIG_SYS_FEC_NO_SHARED_PHY
 #ifdef CONFIG_SYS_FEC_NO_SHARED_PHY
 		if (info->iobase == CONFIG_SYS_FEC0_IOBASE)
 		if (info->iobase == CONFIG_SYS_FEC0_IOBASE)