ACPI: acpi_driver_data could only be applied to acpi_device
authorAlexey Starikovskiy <astarikovskiy@suse.de>
Wed, 10 Sep 2008 10:33:43 +0000 (14:33 +0400)
committerLen Brown <len.brown@intel.com>
Fri, 10 Oct 2008 22:05:52 +0000 (18:05 -0400)
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
CC: Hannes Reinecke <hare@suse.de>
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/scan.c

index f6f52c1a2abad88cecc73a41ea65c4bddfafc0ae..e7b8853c310b9c59e22ec85f824d08d412d36d4d 100644 (file)
@@ -384,7 +384,7 @@ static int acpi_device_remove(struct device * dev)
                        acpi_drv->ops.remove(acpi_dev, acpi_dev->removal_type);
        }
        acpi_dev->driver = NULL;
-       acpi_driver_data(dev) = NULL;
+       acpi_driver_data(acpi_dev) = NULL;
 
        put_device(dev);
        return 0;