diff options
-rw-r--r-- | drivers/spi/spi-bcm63xx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c index ef05387c1341..461891fbc198 100644 --- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c | |||
@@ -62,8 +62,8 @@ static inline u8 bcm_spi_readb(struct bcm63xx_spi *bs, | |||
62 | static inline u16 bcm_spi_readw(struct bcm63xx_spi *bs, | 62 | static inline u16 bcm_spi_readw(struct bcm63xx_spi *bs, |
63 | unsigned int offset) | 63 | unsigned int offset) |
64 | { | 64 | { |
65 | #ifdef CONFIG_BIG_ENDIAN | 65 | #ifdef CONFIG_CPU_BIG_ENDIAN |
66 | return ioread16(bs->regs + bcm63xx_spireg(offset)); | 66 | return ioread16be(bs->regs + bcm63xx_spireg(offset)); |
67 | #else | 67 | #else |
68 | return readw(bs->regs + bcm63xx_spireg(offset)); | 68 | return readw(bs->regs + bcm63xx_spireg(offset)); |
69 | #endif | 69 | #endif |
@@ -78,8 +78,8 @@ static inline void bcm_spi_writeb(struct bcm63xx_spi *bs, | |||
78 | static inline void bcm_spi_writew(struct bcm63xx_spi *bs, | 78 | static inline void bcm_spi_writew(struct bcm63xx_spi *bs, |
79 | u16 value, unsigned int offset) | 79 | u16 value, unsigned int offset) |
80 | { | 80 | { |
81 | #ifdef CONFIG_BIG_ENDIAN | 81 | #ifdef CONFIG_CPU_BIG_ENDIAN |
82 | iowrite16(value, bs->regs + bcm63xx_spireg(offset)); | 82 | iowrite16be(value, bs->regs + bcm63xx_spireg(offset)); |
83 | #else | 83 | #else |
84 | writew(value, bs->regs + bcm63xx_spireg(offset)); | 84 | writew(value, bs->regs + bcm63xx_spireg(offset)); |
85 | #endif | 85 | #endif |