summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Van Baren <vanbaren@cideas.com>2007-11-28 21:24:50 -0500
committerGerald Van Baren <vanbaren@cideas.com>2007-12-07 20:51:25 -0500
commitc01b17dd856fa120b2970f50d9598546a4927ec3 (patch)
tree22c95f4acd49aaa23fe6f9be2094f35235173103
parent246d4ae6bc282bc1841224e1c5fc49dc925e0bf7 (diff)
downloadu-boot-imx-c01b17dd856fa120b2970f50d9598546a4927ec3.zip
u-boot-imx-c01b17dd856fa120b2970f50d9598546a4927ec3.tar.gz
u-boot-imx-c01b17dd856fa120b2970f50d9598546a4927ec3.tar.bz2
Conditionally compile fdt_fixup_ethernet()
Fix compiler warnings: On boards that don't have ethernets defined, don't compile fdt_fixup_ethernet().
-rw-r--r--common/fdt_support.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/fdt_support.c b/common/fdt_support.c
index d05d656..b5ee6e9 100644
--- 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