platform / x86: Use global PCI rescan-remove locking
[sfrench/cifs-2.6.git] / drivers / platform / x86 / eeepc-laptop.c
index aefcc32e563479d2b22404fdd75ceb7072423d16..538521b009488931227dacad13b7c68c32035543 100644 (file)
@@ -592,6 +592,7 @@ static void eeepc_rfkill_hotplug(struct eeepc_laptop *eeepc, acpi_handle handle)
                rfkill_set_sw_state(eeepc->wlan_rfkill, blocked);
 
        mutex_lock(&eeepc->hotplug_lock);
+       pci_lock_rescan_remove();
 
        if (eeepc->hotplug_slot) {
                port = acpi_get_pci_dev(handle);
@@ -649,6 +650,7 @@ out_put_dev:
        }
 
 out_unlock:
+       pci_unlock_rescan_remove();
        mutex_unlock(&eeepc->hotplug_lock);
 }