diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-05-26 16:08:40 +0200 |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2008-05-26 16:08:40 +0200 |
commit | 2548baa07ddf37ea8604e9627f042616d1cdc43e (patch) | |
tree | ca44e9d9bfe428cc1af657b274450fd130e0df0f /include | |
parent | tuner: Do not alter i2c_client.name (diff) | |
download | linux-2548baa07ddf37ea8604e9627f042616d1cdc43e.tar.xz linux-2548baa07ddf37ea8604e9627f042616d1cdc43e.zip |
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')
-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)))); }; |