[MIPS] PCI: Set need_domain_info if controller domain index is non-zero.
authorRalf Baechle <ralf@linux-mips.org>
Wed, 29 Aug 2007 07:34:39 +0000 (08:34 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 11 Sep 2007 18:03:25 +0000 (19:03 +0100)
This fixes this little funny:

bigsur:/proc/bus/pci# ls -l
total 0
dr-xr-xr-x    2 root     root            0 Aug 28 19:31 00
dr-xr-xr-x    2 root     root            0 Aug 28 19:31 00
dr-xr-xr-x    2 root     root            0 Aug 28 19:31 01
dr-xr-xr-x    2 root     root            0 Aug 28 19:31 03
-r--r--r--    1 root     root            0 Aug 28 19:31 devices

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/pci/pci.c

index 6c5c684d1422614d7fa1331469e2b59e22cd96bb..589b745d822a31b47cc2c98b96e6a75bb29dfc19 100644 (file)
@@ -141,6 +141,7 @@ static int __init pcibios_init(void)
 
                bus = pci_scan_bus(next_busno, hose->pci_ops, hose);
                hose->bus = bus;
+               need_domain_info = need_domain_info || hose->index;
                hose->need_domain_info = need_domain_info;
                if (bus) {
                        next_busno = bus->subordinate + 1;