]> git.sur5r.net Git - u-boot/blobdiff - cpu/ppc4xx/440spe_pcie.c
Sync'd u-boot-net with mainline
[u-boot] / cpu / ppc4xx / 440spe_pcie.c
index 6130cd283966d12032fa80afa891f160a54acbe7..d6c4be5f1a1a1a64006a810e4c0cba86deb20523 100644 (file)
 #include <common.h>
 #include <pci.h>
 
-#include "440spe_pcie.h"
+#if defined(CONFIG_440SPE) && defined(CONFIG_PCI)
 
-#if defined(CONFIG_440SPE)
-#if defined(CONFIG_PCI)
+#include "440spe_pcie.h"
 
 enum {
        PTYPE_ENDPOINT          = 0x0,
@@ -958,5 +957,4 @@ int ppc440spe_setup_pcie_endpoint(struct pci_controller *hose, int port)
 
        return 0;
 }
-#endif /* CONFIG_PCI */
-#endif /* CONFIG_440SPE */
+#endif /* CONFIG_440SPE && CONFIG_PCI */