drivers/fm: Fix compiling error if FW location is not defined
authorYork Sun <yorksun@freescale.com>
Tue, 25 Jun 2013 18:37:40 +0000 (11:37 -0700)
committerYork Sun <yorksun@freescale.com>
Fri, 9 Aug 2013 19:41:38 +0000 (12:41 -0700)
FMAN firmware can be in NOR flash, NAND flash, SPI flash, MMC or even
remote. In case none of them is defined, set it to null.

Signed-off-by: York Sun <yorksun@freescale.com>
drivers/net/fm/fm.c

index 4bc8f35a1cbf3a6387bc6579766d0ff4def8b692..bca20b3330361690e1aed72d7386b5a6ae3b24a5 100644 (file)
@@ -396,6 +396,8 @@ int fm_init_common(int index, struct ccsr_fman *reg)
        }
 #elif defined(CONFIG_SYS_QE_FMAN_FW_IN_REMOTE)
        void *addr = (void *)CONFIG_SYS_QE_FMAN_FW_ADDR;
+#else
+       void *addr = NULL;
 #endif
 
        /* Upload the Fman microcode if it's present */