omap4+: Avoid using __attribute__ ((__packed__))

Avoid using __attribute__ ((__packed__)) unless it's
absolutely necessary. "packed" will remove alignment
requirements for the respective objects and may cause
alignment issues unless alignment is also enforced
using a pragma.

Here, these packed attributes were causing alignment
faults in Thumb build.

Signed-off-by: Aneesh V <aneesh@ti.com>
This commit is contained in:
Aneesh V 2012-03-08 07:20:21 +00:00 committed by Albert ARIBAUD
parent f61faeba82
commit 03f69dc6fd
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ struct pad_conf_entry {
u16 val;
} __attribute__ ((packed));
};
#ifdef CONFIG_OFF_PADCONF
#define OFF_PD (1 << 12)

View File

@ -34,7 +34,7 @@ struct pad_conf_entry {
u16 val;
} __attribute__ ((__packed__));
};
#ifdef CONFIG_OFF_PADCONF
#define OFF_PD (1 << 12)