Skip to content

Commit

Permalink
staging: sm750fb: Fix parameter mistake in poke32
Browse files Browse the repository at this point in the history
In commit c075b6f ("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: c075b6f ("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>
  • Loading branch information
chenhuacai authored and gregkh committed Nov 6, 2017
1 parent 1bbf6a6 commit 16808dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/sm750fb/ddk750_chip.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 16808dc

Please sign in to comment.