diff options
Diffstat (limited to 'drivers/acpi/scan.c')
-rw-r--r-- | drivers/acpi/scan.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 781435d7e369..4a89f081160f 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -426,9 +426,6 @@ static int acpi_device_probe(struct device * dev) | |||
426 | if (acpi_drv->ops.notify) { | 426 | if (acpi_drv->ops.notify) { |
427 | ret = acpi_device_install_notify_handler(acpi_dev); | 427 | ret = acpi_device_install_notify_handler(acpi_dev); |
428 | if (ret) { | 428 | if (ret) { |
429 | if (acpi_drv->ops.stop) | ||
430 | acpi_drv->ops.stop(acpi_dev, | ||
431 | acpi_dev->removal_type); | ||
432 | if (acpi_drv->ops.remove) | 429 | if (acpi_drv->ops.remove) |
433 | acpi_drv->ops.remove(acpi_dev, | 430 | acpi_drv->ops.remove(acpi_dev, |
434 | acpi_dev->removal_type); | 431 | acpi_dev->removal_type); |
@@ -452,8 +449,6 @@ static int acpi_device_remove(struct device * dev) | |||
452 | if (acpi_drv) { | 449 | if (acpi_drv) { |
453 | if (acpi_drv->ops.notify) | 450 | if (acpi_drv->ops.notify) |
454 | acpi_device_remove_notify_handler(acpi_dev); | 451 | acpi_device_remove_notify_handler(acpi_dev); |
455 | if (acpi_drv->ops.stop) | ||
456 | acpi_drv->ops.stop(acpi_dev, acpi_dev->removal_type); | ||
457 | if (acpi_drv->ops.remove) | 452 | if (acpi_drv->ops.remove) |
458 | acpi_drv->ops.remove(acpi_dev, acpi_dev->removal_type); | 453 | acpi_drv->ops.remove(acpi_dev, acpi_dev->removal_type); |
459 | } | 454 | } |