aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/st_rc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/rc/st_rc.c')
-rw-r--r--drivers/media/rc/st_rc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/rc/st_rc.c b/drivers/media/rc/st_rc.c
index 0e758ae2e529..37d040158dff 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 volatile void __iomem *base; /* Register base address */ 25 void __iomem *base; /* Register base address */
26 volatile void __iomem *rx_base;/* RX Register base address */ 26 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((__force void *)rc_dev->base)) { 270 if (IS_ERR(rc_dev->base)) {
271 ret = PTR_ERR((__force void *)rc_dev->base); 271 ret = PTR_ERR(rc_dev->base);
272 goto err; 272 goto err;
273 } 273 }
274 274
@@ -334,7 +334,7 @@ err:
334 return ret; 334 return ret;
335} 335}
336 336
337#ifdef CONFIG_PM 337#ifdef CONFIG_PM_SLEEP
338static int st_rc_suspend(struct device *dev) 338static int st_rc_suspend(struct device *dev)
339{ 339{
340 struct st_rc_device *rc_dev = dev_get_drvdata(dev); 340 struct st_rc_device *rc_dev = dev_get_drvdata(dev);
@@ -381,7 +381,7 @@ static int st_rc_resume(struct device *dev)
381static SIMPLE_DEV_PM_OPS(st_rc_pm_ops, st_rc_suspend, st_rc_resume); 381static SIMPLE_DEV_PM_OPS(st_rc_pm_ops, st_rc_suspend, st_rc_resume);
382 382
383#ifdef CONFIG_OF 383#ifdef CONFIG_OF
384static struct of_device_id st_rc_match[] = { 384static const struct of_device_id st_rc_match[] = {
385 { .compatible = "st,comms-irb", }, 385 { .compatible = "st,comms-irb", },
386 {}, 386 {},
387}; 387};