diff options
author | Huacai Chen <chenhc@lemote.com> | 2017-11-06 08:43:03 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-06 16:44:06 +0100 |
commit | 16808dcf605e6302319a8c3266789b76d4c0983b (patch) | |
tree | 2eddc2c6fd8a5cd8618b978d6bba5b4c0924cd67 /drivers/staging/sm750fb | |
parent | 1bbf6a6d4091affb27ec0a19d7aa7887ce72f610 (diff) | |
download | linux-stable-16808dcf605e6302319a8c3266789b76d4c0983b.tar.gz linux-stable-16808dcf605e6302319a8c3266789b76d4c0983b.tar.bz2 linux-stable-16808dcf605e6302319a8c3266789b76d4c0983b.zip |
staging: sm750fb: Fix parameter mistake in poke32
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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb')
-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); } |