From: akpm@osdl.org Date: Mon, 14 Nov 2005 00:06:33 +0000 (-0800) Subject: [PATCH] rpaphp_pci build fix X-Git-Tag: v2.6.15-rc2~200 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=89a071b80767c3a7ed56e13ae5e810f751b19eeb;p=~emulex%2Finfiniband.git [PATCH] rpaphp_pci build fix (akpm: _machine is some ppc64 thing - this is a powerpc-only driver) Signed-off-by: Serge Hallyn Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/pci/hotplug/rpaphp_pci.c b/drivers/pci/hotplug/rpaphp_pci.c index a7859a84d1a..4b35097b3d9 100644 --- a/drivers/pci/hotplug/rpaphp_pci.c +++ b/drivers/pci/hotplug/rpaphp_pci.c @@ -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__);