]> Pileus Git - ~andy/linux/commitdiff
[PATCH] rpaphp_pci build fix
authorakpm@osdl.org <akpm@osdl.org>
Mon, 14 Nov 2005 00:06:33 +0000 (16:06 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 14 Nov 2005 02:14:11 +0000 (18:14 -0800)
(akpm: _machine is some ppc64 thing - this is a powerpc-only driver)

Signed-off-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/pci/hotplug/rpaphp_pci.c

index a7859a84d1ae9a4280435ce3172ef145461e2caf..4b35097b3d9fba0201dca7e2bca9f6fa8eb07dd9 100644 (file)
@@ -253,7 +253,7 @@ rpaphp_pci_config_slot(struct pci_bus *bus)
        if (!dn || !dn->child)
                return NULL;
 
-       if (systemcfg->platform == PLATFORM_PSERIES_LPAR) {
+       if (_machine == PLATFORM_PSERIES_LPAR) {
                of_scan_bus(dn, bus);
                if (list_empty(&bus->devices)) {
                        err("%s: No new device found\n", __FUNCTION__);