Conditionally compile fdt_fixup_ethernet()

Fix compiler warnings: On boards that don't have ethernets defined,
don't compile fdt_fixup_ethernet().
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 @@
 	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 @@
 #endif
 	}
 }
+#endif