From: Alexey Starikovskiy Date: Wed, 10 Sep 2008 10:33:43 +0000 (+0400) Subject: ACPI: acpi_driver_data could only be applied to acpi_device X-Git-Tag: v2.6.28-rc1~26^2~14^2~10 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4b5fcb353ba46adfa2f98546e3d34e7dc65221cb;p=linux-2.6-omap-h63xx.git ACPI: acpi_driver_data could only be applied to acpi_device Signed-off-by: Alexey Starikovskiy CC: Hannes Reinecke Signed-off-by: Alexey Starikovskiy Signed-off-by: Len Brown --- diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index f6f52c1a2ab..e7b8853c310 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -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;