aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-10-23 14:54:08 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-23 14:54:08 -0400
commitf3161f36f5f49ee995b90d6207d8b6d990355e0a (patch)
treee0ae01fa546e91e676e9f067a204337a6e873301 /drivers
parent12e1ec9ff31d388305da644b452c9f80d244aa55 (diff)
pcc-acpi: fix compile with new stricter ACPI types
This was another merge problem that wasn't a data conflict, but due to independent changes in two branches that just didn't work together. The pcc-acpi staging driver used acpi_driver_data(device) = hotkey; to set driver data, but the ACPI merge made that invalid in commit db89b4f0dbab837d0f3de2c3e9427a8d5393afa3 ("ACPI: catch calls of acpi_driver_data on pointer of wrong type"), and now you're supposed to just do. device->driver_data = hotkey; instead. Fix it up. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/pcc-acpi/pcc-acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/pcc-acpi/pcc-acpi.c b/drivers/staging/pcc-acpi/pcc-acpi.c
index 7715c31f2731..3b34a3e4885a 100644
--- a/drivers/staging/pcc-acpi/pcc-acpi.c
+++ b/drivers/staging/pcc-acpi/pcc-acpi.c
@@ -1011,7 +1011,7 @@ static int __devinit acpi_pcc_hotkey_add(struct acpi_device *device)
1011 hotkey->device = device; 1011 hotkey->device = device;
1012 hotkey->handle = device->handle; 1012 hotkey->handle = device->handle;
1013 hotkey->num_sifr = num_sifr; 1013 hotkey->num_sifr = num_sifr;
1014 acpi_driver_data(device) = hotkey; 1014 device->driver_data = hotkey;
1015 strcpy(acpi_device_name(device), ACPI_PCC_DEVICE_NAME); 1015 strcpy(acpi_device_name(device), ACPI_PCC_DEVICE_NAME);
1016 strcpy(acpi_device_class(device), ACPI_PCC_CLASS); 1016 strcpy(acpi_device_class(device), ACPI_PCC_CLASS);
1017 1017