ACPI: catch calls of acpi_driver_data on pointer of wrong type
[linux-3.10.git] / drivers / misc / intel_menlow.c
index 80a1363..cd3ea7f 100644 (file)
@@ -175,7 +175,7 @@ static int intel_menlow_memory_add(struct acpi_device *device)
                goto end;
        }
 
-       acpi_driver_data(device) = cdev;
+       device->driver_data = cdev;
        result = sysfs_create_link(&device->dev.kobj,
                                &cdev->device.kobj, "thermal_cooling");
        if (result)