Commit 9b9817cc authored by Ville Syrjala's avatar Ville Syrjala Committed by Linus Torvalds
Browse files

[PATCH] atyfb: Fix sparse warnings



Silence some sparse warnings:
* Remove casts from atari out_le32() and friends.
* Move accel functions' declarations to atyfb.h.
Signed-off-by: default avatarVille Syrjala <syrjala@sci.fi>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c98959f5
...@@ -227,7 +227,7 @@ static inline u32 aty_ld_le32(int regindex, const struct atyfb_par *par) ...@@ -227,7 +227,7 @@ static inline u32 aty_ld_le32(int regindex, const struct atyfb_par *par)
regindex -= 0x800; regindex -= 0x800;
#ifdef CONFIG_ATARI #ifdef CONFIG_ATARI
return in_le32((volatile u32 *)(par->ati_regbase + regindex)); return in_le32(par->ati_regbase + regindex);
#else #else
return readl(par->ati_regbase + regindex); return readl(par->ati_regbase + regindex);
#endif #endif
...@@ -240,7 +240,7 @@ static inline void aty_st_le32(int regindex, u32 val, const struct atyfb_par *pa ...@@ -240,7 +240,7 @@ static inline void aty_st_le32(int regindex, u32 val, const struct atyfb_par *pa
regindex -= 0x800; regindex -= 0x800;
#ifdef CONFIG_ATARI #ifdef CONFIG_ATARI
out_le32((volatile u32 *)(par->ati_regbase + regindex), val); out_le32(par->ati_regbase + regindex, val);
#else #else
writel(val, par->ati_regbase + regindex); writel(val, par->ati_regbase + regindex);
#endif #endif
...@@ -253,7 +253,7 @@ static inline void aty_st_le16(int regindex, u16 val, ...@@ -253,7 +253,7 @@ static inline void aty_st_le16(int regindex, u16 val,
if (regindex >= 0x400) if (regindex >= 0x400)
regindex -= 0x800; regindex -= 0x800;
#ifdef CONFIG_ATARI #ifdef CONFIG_ATARI
out_le16((volatile u16 *)(par->ati_regbase + regindex), val); out_le16(par->ati_regbase + regindex, val);
#else #else
writel(val, par->ati_regbase + regindex); writel(val, par->ati_regbase + regindex);
#endif #endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment