i2c: Align i2c_device_id
authorJiri Slaby <jirislaby@gmail.com>
Mon, 26 May 2008 14:08:40 +0000 (16:08 +0200)
committerJean Delvare <khali@hyperion.delvare>
Mon, 26 May 2008 14:08:40 +0000 (16:08 +0200)
Align i2c_device_id.driver_data to 8 bytes to not fail on crossbuilds.

(Added in d2653e92732bd3911feff6bee5e23dbf959381db.)

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
include/linux/mod_devicetable.h

index d73eceaa7afb481e25f623fbf9a7aec92117f808..69b2342d5ebb81954ad9bcf3df568aa7d6585ada 100644 (file)
@@ -375,7 +375,8 @@ struct virtio_device_id {
 
 struct i2c_device_id {
        char name[I2C_NAME_SIZE];
-       kernel_ulong_t driver_data;     /* Data private to the driver */
+       kernel_ulong_t driver_data      /* Data private to the driver */
+                       __attribute__((aligned(sizeof(kernel_ulong_t))));
 };