projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
246d4ae
)
Conditionally compile fdt_fixup_ethernet()
author
Gerald Van Baren
<vanbaren@cideas.com>
Thu, 29 Nov 2007 02:24:50 +0000
(21:24 -0500)
committer
Gerald Van Baren
<vanbaren@cideas.com>
Sat, 8 Dec 2007 01:51:25 +0000
(20:51 -0500)
Fix compiler warnings: On boards that don't have ethernets defined,
don't compile fdt_fixup_ethernet().
common/fdt_support.c
patch
|
blob
|
history
diff --git
a/common/fdt_support.c
b/common/fdt_support.c
index d05d6561eee5e519d90aaab9d382fc01259ce979..b5ee6e9601bf5322aa1216371f870af1f7e0bbd4 100644
(file)
--- a/
common/fdt_support.c
+++ b/
common/fdt_support.c
@@
-559,6
+559,9
@@
int fdt_fixup_memory(void *blob, u64 start, u64 size)
return 0;
}
+#if defined(CONFIG_HAS_ETH0) || defined(CONFIG_HAS_ETH1) ||\
+ defined(CONFIG_HAS_ETH2) || defined(CONFIG_HAS_ETH3)
+
void fdt_fixup_ethernet(void *fdt, bd_t *bd)
{
int node;
@@
-604,3
+607,4
@@
void fdt_fixup_ethernet(void *fdt, bd_t *bd)
#endif
}
}
+#endif