misc/ep93xx_pwm: use {read,write}* instead of __raw_* versions for io
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 24 May 2013 23:21:50 +0000 (16:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 12:54:01 +0000 (21:54 +0900)
The mmio_base is an ioremap'ed memory resource. The normal memory
io functions should be used not the __raw_* versions.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Ryan Mallon <rmallon@gmail.com>
Cc: Matthieu Crapet <mcrapet@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/ep93xx_pwm.c

index 36370b429bc7c20a27dd28fca13c99570b7000aa..af01fb9fcd7ec8feee55329e789c6954a7772462 100644 (file)
@@ -42,13 +42,13 @@ struct ep93xx_pwm {
 static inline void ep93xx_pwm_writel(struct ep93xx_pwm *pwm,
                unsigned int val, unsigned int off)
 {
-       __raw_writel(val, pwm->mmio_base + off);
+       writel(val, pwm->mmio_base + off);
 }
 
 static inline unsigned int ep93xx_pwm_readl(struct ep93xx_pwm *pwm,
                unsigned int off)
 {
-       return __raw_readl(pwm->mmio_base + off);
+       return readl(pwm->mmio_base + off);
 }
 
 static inline void ep93xx_pwm_write_tc(struct ep93xx_pwm *pwm, u16 value)
This page took 0.025424 seconds and 5 git commands to generate.