X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=drivers%2Facpi%2Fscan.c;h=33afe7887dd0437fc76bca46c8e176c31e4a2b21;hb=c13ebbe85e758f50e8af00e5076b1be9b570c648;hp=57b053f424d13e23ef2dd4b43a191c0d9dda09da;hpb=641f832c73babf0405c7afb41c8bfed999ebbad7;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 57b053f..33afe78 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -329,7 +329,8 @@ static int acpi_scan_hot_remove(struct acpi_device *device) unsigned long long sta; acpi_status status; - if (device->handler->hotplug.demand_offline && !acpi_force_hot_remove) { + if (device->handler && device->handler->hotplug.demand_offline + && !acpi_force_hot_remove) { if (!acpi_scan_is_offline(device, true)) return -EBUSY; } else {