summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 246d4ae)
raw | patch | inline | side by side (parent: 246d4ae)
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().
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
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;
#endif
}
}
+#endif