aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/scan.c')
-rw-r--r--drivers/acpi/scan.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index bc8077f173da..0989b323e65f 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -577,8 +577,7 @@ static int acpi_device_probe(struct device * dev)
577 ret = acpi_device_install_notify_handler(acpi_dev); 577 ret = acpi_device_install_notify_handler(acpi_dev);
578 if (ret) { 578 if (ret) {
579 if (acpi_drv->ops.remove) 579 if (acpi_drv->ops.remove)
580 acpi_drv->ops.remove(acpi_dev, 580 acpi_drv->ops.remove(acpi_dev);
581 acpi_dev->removal_type);
582 return ret; 581 return ret;
583 } 582 }
584 } 583 }
@@ -600,7 +599,7 @@ static int acpi_device_remove(struct device * dev)
600 if (acpi_drv->ops.notify) 599 if (acpi_drv->ops.notify)
601 acpi_device_remove_notify_handler(acpi_dev); 600 acpi_device_remove_notify_handler(acpi_dev);
602 if (acpi_drv->ops.remove) 601 if (acpi_drv->ops.remove)
603 acpi_drv->ops.remove(acpi_dev, acpi_dev->removal_type); 602 acpi_drv->ops.remove(acpi_dev);
604 } 603 }
605 acpi_dev->driver = NULL; 604 acpi_dev->driver = NULL;
606 acpi_dev->driver_data = NULL; 605 acpi_dev->driver_data = NULL;