diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-07-17 16:36:07 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-07-17 16:36:07 +0000 |
commit | fb557d90cc17015b5fb0875dbecd3907893c2ceb (patch) | |
tree | b832cfec065ed3c8a3a36a88f7bf8397a1913880 /target/linux/atheros | |
parent | 75cfa4a0c2d44542862befaff32395a5ef5d9374 (diff) | |
download | master-187ad058-fb557d90cc17015b5fb0875dbecd3907893c2ceb.tar.gz master-187ad058-fb557d90cc17015b5fb0875dbecd3907893c2ceb.tar.bz2 master-187ad058-fb557d90cc17015b5fb0875dbecd3907893c2ceb.zip |
atheros: use correct address space and pointer type for register access
Make sparse happy :)
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41686 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros')
-rw-r--r-- | target/linux/atheros/patches-3.10/100-board.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/atheros/patches-3.10/100-board.patch b/target/linux/atheros/patches-3.10/100-board.patch index 36ad7c8925..02ab9432d4 100644 --- a/target/linux/atheros/patches-3.10/100-board.patch +++ b/target/linux/atheros/patches-3.10/100-board.patch @@ -2876,13 +2876,13 @@ +static inline u32 +ar231x_read_reg(u32 reg) +{ -+ return __raw_readl((u32 *)KSEG1ADDR(reg)); ++ return __raw_readl((void __iomem *)KSEG1ADDR(reg)); +} + +static inline void +ar231x_write_reg(u32 reg, u32 val) +{ -+ __raw_writel(val, (u32 *)KSEG1ADDR(reg)); ++ __raw_writel(val, (void __iomem *)KSEG1ADDR(reg)); +} + +static inline u32 |