Skip to contentSkip to conversation

video: da8xx-fb: make io operations safe

PATCH Superseded Darren Etheridge 2 participants 2 messages Jun 25, 2013 – Jun 26, 2013 Framebuffer layer

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 11/23 video: da8xx-fb: make io operations safe

From: Afzal Mohammed <[email protected]>

Replace __raw_readl/__raw_writel with readl/writel; this driver is reused on ARMv7 (AM335x SoC).

---
 drivers/video/da8xx-fb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/video/da8xx-fb.c +2 -2
index 720604c..35a33ca 100644
@@ -141,12 +141,12 @@ static int frame_done_flag;
 
 static inline unsigned int lcdc_read(unsigned int addr)
 {
-	return (unsigned int)__raw_readl(da8xx_fb_reg_base + (addr));
+	return (unsigned int)readl(da8xx_fb_reg_base + (addr));
 }
 
 static inline void lcdc_write(unsigned int val, unsigned int addr)
 {
-	__raw_writel(val, da8xx_fb_reg_base + (addr));
+	writel(val, da8xx_fb_reg_base + (addr));
 }
 
 struct da8xx_fb_par {
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 4 lines · Darren Etheridge

From: Afzal Mohammed <[email protected]>

Replace __raw_readl/__raw_writel with readl/writel; this driver is reused on ARMv7 (AM335x SoC).

Why is this needed?

Tomi