PCI hotplug: Fix unexpected driver unregister in pciehp_acpi.c
authorRafael J. Wysocki <rjw@sisk.pl>
Sat, 18 Dec 2010 12:29:45 +0000 (13:29 +0100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 23 Dec 2010 20:51:49 +0000 (12:51 -0800)
commit994e0b2c3646ce0ca0e4546e6b10c5cf66b976bf
tree9f93e8f4fc896eb4fc90dd64547e920665fc7d2a
parente819eb8687767cefca7b6abf5ac6d5efcf581eeb
PCI hotplug: Fix unexpected driver unregister in pciehp_acpi.c

If pcie_ports_disabled is set, pcie_port_service_register() returns
error code and select_detection_mode() should not attempt to
unregister dummy_driver and use dummy_slots.  It should return
PCIEHP_DETECT_ACPI immediately instead.

Reviewed-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Acked-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/pciehp_acpi.c