Skip to contentSkip to conversation

ACPI: acpi_driver_data could only be applied to acpi_device

PATCH Applied Alexey Starikovskiy 2 participants 2 messages Sep 10, 2008 – Oct 10, 2008 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: acpi_driver_data could only be applied to acpi_device

---

 drivers/acpi/scan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/acpi/scan.c +1 -1
index f6f52c1..e7b8853 100644
@@ -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;
reviewer Applied
#1 lore raw

applied.

thanks,
-len

Quoted 24 lines · Alexey Starikovskiy

---

 drivers/acpi/scan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/acpi/scan.c +1 -1
index f6f52c1..e7b8853 100644
@@ -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;