]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/misc/eeepc-laptop.c
ACPI: catch calls of acpi_driver_data on pointer of wrong type
[linux-2.6-omap-h63xx.git] / drivers / misc / eeepc-laptop.c
index 1ee8501e90f11eb7e350355712625120dd2a5aeb..c1247056116cb817ff023d69f28131d584b4daad 100644 (file)
@@ -411,7 +411,7 @@ static int eeepc_hotk_add(struct acpi_device *device)
        ehotk->handle = device->handle;
        strcpy(acpi_device_name(device), EEEPC_HOTK_DEVICE_NAME);
        strcpy(acpi_device_class(device), EEEPC_HOTK_CLASS);
-       acpi_driver_data(device) = ehotk;
+       device->driver_data = ehotk;
        ehotk->device = device;
        result = eeepc_hotk_check();
        if (result)