X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Ffreescale%2Fmpc8360emds%2Fpci.c;h=4a0d460fadc29376129d41a5f0851050d7d13504;hb=2eb6e01049886bdaadf11243e7c8cf674c34ed0b;hp=64cb8ade62f8b3486681d5cc5e8f1e32e8b83452;hpb=5b8bc606c61456566af6912f818a153b6b06f242;p=u-boot diff --git a/board/freescale/mpc8360emds/pci.c b/board/freescale/mpc8360emds/pci.c index 64cb8ade62..4a0d460fad 100644 --- a/board/freescale/mpc8360emds/pci.c +++ b/board/freescale/mpc8360emds/pci.c @@ -18,9 +18,7 @@ #include #include #include -#if defined(CONFIG_OF_FLAT_TREE) -#include -#elif defined(CONFIG_OF_LIBFDT) +#if defined(CONFIG_OF_LIBFDT) #include #include #endif @@ -273,8 +271,8 @@ void ft_pci_setup(void *blob, bd_t *bd) if (nodeoffset >= 0) { path = fdt_getprop(blob, nodeoffset, "pci0", NULL); if (path) { - tmp[0] = cpu_to_be32(pci_hose[0].first_busno); - tmp[1] = cpu_to_be32(pci_hose[0].last_busno); + tmp[0] = cpu_to_be32(hose[0].first_busno); + tmp[1] = cpu_to_be32(hose[0].last_busno); do_fixup_by_path(blob, path, "bus-range", &tmp, sizeof(tmp), 1); @@ -284,18 +282,5 @@ void ft_pci_setup(void *blob, bd_t *bd) } } } -#elif defined(CONFIG_OF_FLAT_TREE) -void -ft_pci_setup(void *blob, bd_t *bd) -{ - u32 *p; - int len; - - p = (u32 *)ft_get_prop(blob, "/" OF_SOC "/pci@8500/bus-range", &len); - if (p != NULL) { - p[0] = hose[0].first_busno; - p[1] = hose[0].last_busno; - } -} -#endif /* CONFIG_OF_FLAT_TREE */ +#endif /* CONFIG_OF_LIBFDT */ #endif /* CONFIG_PCI */