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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index eae6c801536d..a9dda8e0f9f9 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -391,7 +391,7 @@ static int acpi_device_remove(struct device * dev)
391 acpi_drv->ops.remove(acpi_dev, acpi_dev->removal_type); 391 acpi_drv->ops.remove(acpi_dev, acpi_dev->removal_type);
392 } 392 }
393 acpi_dev->driver = NULL; 393 acpi_dev->driver = NULL;
394 acpi_driver_data(dev) = NULL; 394 acpi_dev->driver_data = NULL;
395 395
396 put_device(dev); 396 put_device(dev);
397 return 0; 397 return 0;
@@ -544,7 +544,7 @@ acpi_bus_driver_init(struct acpi_device *device, struct acpi_driver *driver)
544 result = driver->ops.add(device); 544 result = driver->ops.add(device);
545 if (result) { 545 if (result) {
546 device->driver = NULL; 546 device->driver = NULL;
547 acpi_driver_data(device) = NULL; 547 device->driver_data = NULL;
548 return result; 548 return result;
549 } 549 }
550 550