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 e7b8853c310b..b88536ab040a 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -384,7 +384,7 @@ static int acpi_device_remove(struct device * dev)
384 acpi_drv->ops.remove(acpi_dev, acpi_dev->removal_type); 384 acpi_drv->ops.remove(acpi_dev, acpi_dev->removal_type);
385 } 385 }
386 acpi_dev->driver = NULL; 386 acpi_dev->driver = NULL;
387 acpi_driver_data(acpi_dev) = NULL; 387 acpi_dev->driver_data = NULL;
388 388
389 put_device(dev); 389 put_device(dev);
390 return 0; 390 return 0;
@@ -537,7 +537,7 @@ acpi_bus_driver_init(struct acpi_device *device, struct acpi_driver *driver)
537 result = driver->ops.add(device); 537 result = driver->ops.add(device);
538 if (result) { 538 if (result) {
539 device->driver = NULL; 539 device->driver = NULL;
540 acpi_driver_data(device) = NULL; 540 device->driver_data = NULL;
541 return result; 541 return result;
542 } 542 }
543 543