diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-10-22 10:09:06 -0400 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-12-13 00:50:57 -0500 |
commit | 594fa5c96d6432c292c6baebc56a6500de6b7bc2 (patch) | |
tree | 2c1378e032d08f257a62708eb6811226a009506f /arch/blackfin/include | |
parent | 2a7e0775d0b0dfc083f97c72dc885f6dab8dd27b (diff) |
Blackfin: twi: Add missing __iomem annotation
Add a missing __iomem to the bfin_twi_iface struct's regs_base field. This fixes
the following sparse warnings:
Fixes the following sparse warnings:
drivers/i2c/busses/i2c-bfin-twi.c:641:26: warning: incorrect type in assignment (different address spaces)
drivers/i2c/busses/i2c-bfin-twi.c:641:26: expected struct bfin_twi_regs *regs_base
drivers/i2c/busses/i2c-bfin-twi.c:641:26: got void [noderef] <asn:2>*
drivers/i2c/busses/i2c-bfin-twi.c:715:22: warning: incorrect type in argument 1 (different address spaces)
drivers/i2c/busses/i2c-bfin-twi.c:715:22: expected void [noderef] <asn:2>*addr
drivers/i2c/busses/i2c-bfin-twi.c:715:22: got struct bfin_twi_regs *regs_base
drivers/i2c/busses/i2c-bfin-twi.c:732:22: warning: incorrect type in argument 1 (different address spaces)
drivers/i2c/busses/i2c-bfin-twi.c:732:22: expected void [noderef] <asn:2>*addr
drivers/i2c/busses/i2c-bfin-twi.c:732:22: got struct bfin_twi_regs *regs_base
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin/include')
-rw-r--r-- | arch/blackfin/include/asm/bfin_twi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/blackfin/include/asm/bfin_twi.h b/arch/blackfin/include/asm/bfin_twi.h index f4a072787436..90c3c006557d 100644 --- a/arch/blackfin/include/asm/bfin_twi.h +++ b/arch/blackfin/include/asm/bfin_twi.h | |||
@@ -61,7 +61,7 @@ struct bfin_twi_iface { | |||
61 | int cur_msg; | 61 | int cur_msg; |
62 | u16 saved_clkdiv; | 62 | u16 saved_clkdiv; |
63 | u16 saved_control; | 63 | u16 saved_control; |
64 | struct bfin_twi_regs *regs_base; | 64 | struct bfin_twi_regs __iomem *regs_base; |
65 | }; | 65 | }; |
66 | 66 | ||
67 | #define DEFINE_TWI_REG(reg_name, reg) \ | 67 | #define DEFINE_TWI_REG(reg_name, reg) \ |