提交 16808dcf 编写于 作者: H Huacai Chen 提交者: Greg Kroah-Hartman

staging: sm750fb: Fix parameter mistake in poke32

In commit c075b6f2 ("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: c075b6f2 ("staging: sm750fb: Replace POKE32 and PEEK32 by inline functions"),
Signed-off-by: NHuacai Chen <chenhc@lemote.com>
Signed-off-by: NLiangliang Huang <huangll@lemote.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 1bbf6a6d
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册