From: York Sun Date: Tue, 25 Jun 2013 18:37:40 +0000 (-0700) Subject: drivers/fm: Fix compiling error if FW location is not defined X-Git-Tag: v2025.01-rc5-pxa1908~15988^2~25 X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=7adefb55adf3e55f3788c3b9682ba91d29da2595;p=u-boot.git drivers/fm: Fix compiling error if FW location is not defined 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 --- diff --git a/drivers/net/fm/fm.c b/drivers/net/fm/fm.c index 4bc8f35a1c..bca20b3330 100644 --- a/drivers/net/fm/fm.c +++ b/drivers/net/fm/fm.c @@ -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 */