|
@@ -196,6 +196,7 @@ int acpi_smbus_unregister_callback(struct acpi_smb_hc *hc)
|
|
hc->callback = NULL;
|
|
hc->callback = NULL;
|
|
hc->context = NULL;
|
|
hc->context = NULL;
|
|
mutex_unlock(&hc->lock);
|
|
mutex_unlock(&hc->lock);
|
|
|
|
+ acpi_os_wait_events_complete();
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -292,6 +293,7 @@ static int acpi_smbus_hc_remove(struct acpi_device *device)
|
|
|
|
|
|
hc = acpi_driver_data(device);
|
|
hc = acpi_driver_data(device);
|
|
acpi_ec_remove_query_handler(hc->ec, hc->query_bit);
|
|
acpi_ec_remove_query_handler(hc->ec, hc->query_bit);
|
|
|
|
+ acpi_os_wait_events_complete();
|
|
kfree(hc);
|
|
kfree(hc);
|
|
device->driver_data = NULL;
|
|
device->driver_data = NULL;
|
|
return 0;
|
|
return 0;
|