Merge branch 'for_linus' of git://cavan.codon.org.uk/platform-drivers-x86
[cascardo/linux.git] / drivers / platform / x86 / eeepc-laptop.c
index 6deb0d7..dab91b4 100644 (file)
@@ -646,7 +646,7 @@ static void eeepc_rfkill_hotplug(struct eeepc_laptop *eeepc, acpi_handle handle)
                } else {
                        dev = pci_get_slot(bus, 0);
                        if (dev) {
-                               pci_remove_bus_device(dev);
+                               pci_stop_and_remove_bus_device(dev);
                                pci_dev_put(dev);
                        }
                }