projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2ab4bb
)
drivers/fm: Fix compiling error if FW location is not defined
author
York Sun
<yorksun@freescale.com>
Tue, 25 Jun 2013 18:37:40 +0000
(11:37 -0700)
committer
York 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
patch
|
blob
|
history
diff --git
a/drivers/net/fm/fm.c
b/drivers/net/fm/fm.c
index 4bc8f35a1cbf3a6387bc6579766d0ff4def8b692..bca20b3330361690e1aed72d7386b5a6ae3b24a5 100644
(file)
--- 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 */