diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-05-26 18:08:40 +0400 |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2008-05-26 18:08:40 +0400 |
commit | 2548baa07ddf37ea8604e9627f042616d1cdc43e (patch) | |
tree | ca44e9d9bfe428cc1af657b274450fd130e0df0f /include/linux | |
parent | 7271e60a950b3677f136a31e084bc4b0463c7018 (diff) | |
download | linux-2548baa07ddf37ea8604e9627f042616d1cdc43e.tar.xz |
i2c: Align i2c_device_id
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>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mod_devicetable.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index d73eceaa7afb..69b2342d5ebb 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -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)))); }; |