diff options
author | Huacai Chen <chenhc@lemote.com> | 2017-11-06 08:43:03 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-21 10:24:36 +0100 |
commit | c52278a636018cb8fa39b2538c6da5d35e6515f7 (patch) | |
tree | 8bb2aa32ba3282dce0a7e377cb5e1bcca9b35363 | |
parent | 274f1097b2041506a6a3ab21c1d3a01897b34b65 (diff) | |
download | linux-stable-c52278a636018cb8fa39b2538c6da5d35e6515f7.tar.gz linux-stable-c52278a636018cb8fa39b2538c6da5d35e6515f7.tar.bz2 linux-stable-c52278a636018cb8fa39b2538c6da5d35e6515f7.zip |
staging: sm750fb: Fix parameter mistake in poke32
commit 16808dcf605e6302319a8c3266789b76d4c0983b upstream.
In commit c075b6f2d357ea9 ("staging: sm750fb: Replace POKE32 and PEEK32
by inline functions"), POKE32 has been replaced by the inline function
poke32. But it exchange the "addr" and "data" parameters by mistake, so
fix it.
Fixes: c075b6f2d357ea9 ("staging: sm750fb: Replace POKE32 and PEEK32 by inline functions"),
Signed-off-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Liangliang Huang <huangll@lemote.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/sm750fb/ddk750_chip.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/sm750fb/ddk750_chip.h b/drivers/staging/sm750fb/ddk750_chip.h index 2c7a9b9a7c8a..d9d4c485e54c 100644 --- a/drivers/staging/sm750fb/ddk750_chip.h +++ b/drivers/staging/sm750fb/ddk750_chip.h @@ -17,7 +17,7 @@ static inline u32 peek32(u32 addr) return readl(addr + mmio750); } -static inline void poke32(u32 data, u32 addr) +static inline void poke32(u32 addr, u32 data) { writel(data, addr + mmio750); } |