nandps_v2_2: Removed IAR compilation errors.

This patch removes the IAR compilation errors.
Modified the OnfiNand_Geometry structure declaration according to IAR compiler

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
This commit is contained in:
P L Sai Krishna 2015-02-26 11:24:02 +05:30 committed by Nava kishore Manne
parent 8240571709
commit c5ad94e476

View file

@ -212,6 +212,9 @@ enum OnfiCommandsEnum {
* Parameter page structure of ONFI 1.0 specification.
* Enhanced this sturcture to include ONFI 2.3 information for EZ NAND support.
*/
#ifdef __ICCARM__
#pragma pack(push, 1)
#endif
typedef struct {
/*
* Revision information and features block
@ -303,7 +306,12 @@ typedef struct {
number */
u8 VendorSpecific[88]; /**< Vendor specific */
u16 Crc; /**< Integrity CRC */
#ifdef __ICCARM__
} OnfiNand_Geometry;
#pragma pack(pop)
#else
}__attribute__((packed))OnfiNand_Geometry;
#endif
/************************** Function Prototypes ******************************/