]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Conditionally compile fdt_fixup_ethernet()
authorGerald Van Baren <vanbaren@cideas.com>
Thu, 29 Nov 2007 02:24:50 +0000 (21:24 -0500)
committerGerald 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

index d05d6561eee5e519d90aaab9d382fc01259ce979..b5ee6e9601bf5322aa1216371f870af1f7e0bbd4 100644 (file)
@@ -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