diff options
-rw-r--r-- | arch/blackfin/include/asm/bfin_twi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/blackfin/include/asm/bfin_twi.h b/arch/blackfin/include/asm/bfin_twi.h index c0fe66257773..f4a072787436 100644 --- a/arch/blackfin/include/asm/bfin_twi.h +++ b/arch/blackfin/include/asm/bfin_twi.h | |||
@@ -94,7 +94,7 @@ static inline u16 read_RCV_DATA8(struct bfin_twi_iface *iface) | |||
94 | unsigned long flags; | 94 | unsigned long flags; |
95 | 95 | ||
96 | flags = hard_local_irq_save(); | 96 | flags = hard_local_irq_save(); |
97 | ret = iface->regs_base->rcv_data8; | 97 | ret = bfin_read16(&iface->regs_base->rcv_data8); |
98 | hard_local_irq_restore(flags); | 98 | hard_local_irq_restore(flags); |
99 | 99 | ||
100 | return ret; | 100 | return ret; |
@@ -106,7 +106,7 @@ static inline u16 read_RCV_DATA16(struct bfin_twi_iface *iface) | |||
106 | unsigned long flags; | 106 | unsigned long flags; |
107 | 107 | ||
108 | flags = hard_local_irq_save(); | 108 | flags = hard_local_irq_save(); |
109 | ret = iface->regs_base->rcv_data16; | 109 | ret = bfin_read16(&iface->regs_base->rcv_data16); |
110 | hard_local_irq_restore(flags); | 110 | hard_local_irq_restore(flags); |
111 | 111 | ||
112 | return ret; | 112 | return ret; |