aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/rc/st_rc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/rc/st_rc.c b/drivers/media/rc/st_rc.c
index e309441a266d..0e758ae2e529 100644
--- a/drivers/media/rc/st_rc.c
+++ b/drivers/media/rc/st_rc.c
@@ -22,8 +22,8 @@ struct st_rc_device {
22 int irq; 22 int irq;
23 int irq_wake; 23 int irq_wake;
24 struct clk *sys_clock; 24 struct clk *sys_clock;
25 void *base; /* Register base address */ 25 volatile void __iomem *base; /* Register base address */
26 void *rx_base;/* RX Register base address */ 26 volatile void __iomem *rx_base;/* RX Register base address */
27 struct rc_dev *rdev; 27 struct rc_dev *rdev;
28 bool overclocking; 28 bool overclocking;
29 int sample_mult; 29 int sample_mult;
@@ -267,8 +267,8 @@ static int st_rc_probe(struct platform_device *pdev)
267 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 267 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
268 268
269 rc_dev->base = devm_ioremap_resource(dev, res); 269 rc_dev->base = devm_ioremap_resource(dev, res);
270 if (IS_ERR(rc_dev->base)) { 270 if (IS_ERR((__force void *)rc_dev->base)) {
271 ret = PTR_ERR(rc_dev->base); 271 ret = PTR_ERR((__force void *)rc_dev->base);
272 goto err; 272 goto err;
273 } 273 }
274 274