]> git.sur5r.net Git - u-boot/blobdiff - common/fdt_support.c
Conditionally compile fdt_fixup_ethernet()
[u-boot] / 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