diff options
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/scan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 3ffc9306538b..9e4422bbe03d 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -353,7 +353,8 @@ static int acpi_scan_hot_remove(struct acpi_device *device) | |||
353 | unsigned long long sta; | 353 | unsigned long long sta; |
354 | acpi_status status; | 354 | acpi_status status; |
355 | 355 | ||
356 | if (device->handler->hotplug.demand_offline && !acpi_force_hot_remove) { | 356 | if (device->handler && device->handler->hotplug.demand_offline |
357 | && !acpi_force_hot_remove) { | ||
357 | if (!acpi_scan_is_offline(device, true)) | 358 | if (!acpi_scan_is_offline(device, true)) |
358 | return -EBUSY; | 359 | return -EBUSY; |
359 | } else { | 360 | } else { |