ACPI: acpi_driver_data could only be applied to acpi_device
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>
This commit is contained in:
parent
5000cadcf3
commit
4b5fcb353b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue