]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/acpi/acpi_bus.h
ACPI: catch calls of acpi_driver_data on pointer of wrong type
[linux-2.6-omap-h63xx.git] / include / acpi / acpi_bus.h
index a5ac0bc7f52eb1cc1849fb29afda135fb9dda6c1..47682465f1f55055d96535283e8c2bda32e0c819 100644 (file)
@@ -300,7 +300,11 @@ struct acpi_device {
        enum acpi_bus_removal_type removal_type;        /* indicate for different removal type */
 };
 
-#define acpi_driver_data(d)    ((d)->driver_data)
+static inline void *acpi_driver_data(struct acpi_device *d)
+{
+       return d->driver_data;
+}
+
 #define to_acpi_device(d)      container_of(d, struct acpi_device, dev)
 #define to_acpi_driver(d)      container_of(d, struct acpi_driver, drv)