aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2013-05-24 19:21:50 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-30 08:54:01 -0400
commit1f7190fd1ef23c3c0423cf4471572b6ec2b57c8b (patch)
treec824048b1fcd5a4368eac1552e448c805cb68bb0 /drivers/misc
parent6c7dd64abdd0d07bab3c1cc4327dc328cb70005a (diff)
misc/ep93xx_pwm: use {read,write}* instead of __raw_* versions for io
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>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/ep93xx_pwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/ep93xx_pwm.c b/drivers/misc/ep93xx_pwm.c
index 36370b429bc7..af01fb9fcd7e 100644
--- a/drivers/misc/ep93xx_pwm.c
+++ b/drivers/misc/ep93xx_pwm.c
@@ -42,13 +42,13 @@ struct ep93xx_pwm {
42static inline void ep93xx_pwm_writel(struct ep93xx_pwm *pwm, 42static inline void ep93xx_pwm_writel(struct ep93xx_pwm *pwm,
43 unsigned int val, unsigned int off) 43 unsigned int val, unsigned int off)
44{ 44{
45 __raw_writel(val, pwm->mmio_base + off); 45 writel(val, pwm->mmio_base + off);
46} 46}
47 47
48static inline unsigned int ep93xx_pwm_readl(struct ep93xx_pwm *pwm, 48static inline unsigned int ep93xx_pwm_readl(struct ep93xx_pwm *pwm,
49 unsigned int off) 49 unsigned int off)
50{ 50{
51 return __raw_readl(pwm->mmio_base + off); 51 return readl(pwm->mmio_base + off);
52} 52}
53 53
54static inline void ep93xx_pwm_write_tc(struct ep93xx_pwm *pwm, u16 value) 54static inline void ep93xx_pwm_write_tc(struct ep93xx_pwm *pwm, u16 value)