diff --git a/drivers/staging/ipack/bridges/tpci200.c b/drivers/staging/ipack/bridges/tpci200.c index 1a149d87bfa398d58a08144d8bbb01d4047ccf64..21b2b758b5cf793d3e2f8447c0bde62e6dbdb840 100644 --- a/drivers/staging/ipack/bridges/tpci200.c +++ b/drivers/staging/ipack/bridges/tpci200.c @@ -501,7 +501,7 @@ static int tpci200_slot_map_space(struct ipack_device *dev, static int tpci200_get_clockrate(struct ipack_device *dev) { struct tpci200_board *tpci200 = check_slot(dev); - u16 __iomem *addr; + __le16 __iomem *addr; if (!tpci200) return -ENODEV; @@ -513,7 +513,7 @@ static int tpci200_get_clockrate(struct ipack_device *dev) static int tpci200_set_clockrate(struct ipack_device *dev, int mherz) { struct tpci200_board *tpci200 = check_slot(dev); - u16 __iomem *addr; + __le16 __iomem *addr; if (!tpci200) return -ENODEV; @@ -536,7 +536,7 @@ static int tpci200_set_clockrate(struct ipack_device *dev, int mherz) static int tpci200_get_error(struct ipack_device *dev) { struct tpci200_board *tpci200 = check_slot(dev); - u16 __iomem *addr; + __le16 __iomem *addr; u16 mask; if (!tpci200) @@ -550,7 +550,7 @@ static int tpci200_get_error(struct ipack_device *dev) static int tpci200_get_timeout(struct ipack_device *dev) { struct tpci200_board *tpci200 = check_slot(dev); - u16 __iomem *addr; + __le16 __iomem *addr; u16 mask; if (!tpci200) @@ -565,7 +565,7 @@ static int tpci200_get_timeout(struct ipack_device *dev) static int tpci200_reset_timeout(struct ipack_device *dev) { struct tpci200_board *tpci200 = check_slot(dev); - u16 __iomem *addr; + __le16 __iomem *addr; u16 mask; if (!tpci200) diff --git a/drivers/staging/ipack/bridges/tpci200.h b/drivers/staging/ipack/bridges/tpci200.h index 2718d22a5dd2c29829549b4068f1520872a7e840..e1f60f335a888491c525c3e4a21259811a467510 100644 --- a/drivers/staging/ipack/bridges/tpci200.h +++ b/drivers/staging/ipack/bridges/tpci200.h @@ -37,12 +37,12 @@ #define TPCI200_MEM8_SPACE_BAR 5 struct tpci200_regs { - u16 revision; + __le16 revision; /* writes to control should occur with the mutex held to protect * read-modify-write operations */ - u16 control[4]; - u16 reset; - u16 status; + __le16 control[4]; + __le16 reset; + __le16 status; u8 reserved[242]; } __packed;