From johnrose@austin.ibm.com Thu Mar 23 12:20:48 2006 Subject: PCI: rpaphp: remove init error condition From: John Rose To: Greg KH Message-Id: <1143145274.2567.2.camel@sinatra.austin.ibm.com> Date: Thu, 23 Mar 2006 14:21:14 -0600 The init function for the RPA PCI Hotplug driver returns -ENODEV in the case that no hotplug-capable slots are detected in the system. This is bad, since hot-capable slots can be added after boot to a purely virtual POWER partition. This is also bad because DLPAR I/O operations depend on the rpaphp module. Change the rpaphp init module to return success for the case of partitions that own no hotplug-capable slots at boot. Such slots can be dynamically added after boot. Signed-off-by: John Rose Signed-off-by: Greg Kroah-Hartman --- drivers/pci/hotplug/rpaphp_core.c | 3 --- 1 file changed, 3 deletions(-) --- gregkh-2.6.orig/drivers/pci/hotplug/rpaphp_core.c +++ gregkh-2.6/drivers/pci/hotplug/rpaphp_core.c @@ -360,9 +360,6 @@ static int __init rpaphp_init(void) while ((dn = of_find_node_by_type(dn, "pci"))) rpaphp_add_slot(dn); - if (!num_slots) - return -ENODEV; - return 0; }