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 297d8b94fbbc..7b90900b2118 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -430,9 +430,6 @@ static int acpi_device_probe(struct device * dev) | |||
430 | if (acpi_drv->ops.notify) { | 430 | if (acpi_drv->ops.notify) { |
431 | ret = acpi_device_install_notify_handler(acpi_dev); | 431 | ret = acpi_device_install_notify_handler(acpi_dev); |
432 | if (ret) { | 432 | if (ret) { |
433 | if (acpi_drv->ops.stop) | ||
434 | acpi_drv->ops.stop(acpi_dev, | ||
435 | acpi_dev->removal_type); | ||
436 | if (acpi_drv->ops.remove) | 433 | if (acpi_drv->ops.remove) |
437 | acpi_drv->ops.remove(acpi_dev, | 434 | acpi_drv->ops.remove(acpi_dev, |
438 | acpi_dev->removal_type); | 435 | acpi_dev->removal_type); |
@@ -456,8 +453,6 @@ static int acpi_device_remove(struct device * dev) | |||
456 | if (acpi_drv) { | 453 | if (acpi_drv) { |
457 | if (acpi_drv->ops.notify) | 454 | if (acpi_drv->ops.notify) |
458 | acpi_device_remove_notify_handler(acpi_dev); | 455 | acpi_device_remove_notify_handler(acpi_dev); |
459 | if (acpi_drv->ops.stop) | ||
460 | acpi_drv->ops.stop(acpi_dev, acpi_dev->removal_type); | ||
461 | if (acpi_drv->ops.remove) | 456 | if (acpi_drv->ops.remove) |
462 | acpi_drv->ops.remove(acpi_dev, acpi_dev->removal_type); | 457 | acpi_drv->ops.remove(acpi_dev, acpi_dev->removal_type); |
463 | } | 458 | } |