staging: sm750fb: Fix parameter mistake in poke32
authorHuacai Chen <chenhc@lemote.com>
Mon, 6 Nov 2017 00:43:03 +0000 (08:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Nov 2017 15:44:06 +0000 (16:44 +0100)
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>
drivers/staging/sm750fb/ddk750_chip.h

index 2c7a9b9a7c8a18959b746d7fe7aaf85a5d5c9028..d9d4c485e54c422f5a2f0e942651348b23d69a41 100644 (file)
@@ -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);
 }