diff options
Diffstat (limited to 'drivers/media/rc/st_rc.c')
-rw-r--r-- | drivers/media/rc/st_rc.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/media/rc/st_rc.c b/drivers/media/rc/st_rc.c index 5c151351afa4..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 | ||
@@ -278,7 +278,7 @@ static int st_rc_probe(struct platform_device *pdev) | |||
278 | rc_dev->rx_base = rc_dev->base; | 278 | rc_dev->rx_base = rc_dev->base; |
279 | 279 | ||
280 | 280 | ||
281 | rc_dev->rstc = reset_control_get(dev, NULL); | 281 | rc_dev->rstc = reset_control_get_optional(dev, NULL); |
282 | if (IS_ERR(rc_dev->rstc)) | 282 | if (IS_ERR(rc_dev->rstc)) |
283 | rc_dev->rstc = NULL; | 283 | rc_dev->rstc = NULL; |
284 | 284 | ||
@@ -376,9 +376,10 @@ static int st_rc_resume(struct device *dev) | |||
376 | return 0; | 376 | return 0; |
377 | } | 377 | } |
378 | 378 | ||
379 | static SIMPLE_DEV_PM_OPS(st_rc_pm_ops, st_rc_suspend, st_rc_resume); | ||
380 | #endif | 379 | #endif |
381 | 380 | ||
381 | static SIMPLE_DEV_PM_OPS(st_rc_pm_ops, st_rc_suspend, st_rc_resume); | ||
382 | |||
382 | #ifdef CONFIG_OF | 383 | #ifdef CONFIG_OF |
383 | static struct of_device_id st_rc_match[] = { | 384 | static struct of_device_id st_rc_match[] = { |
384 | { .compatible = "st,comms-irb", }, | 385 | { .compatible = "st,comms-irb", }, |
@@ -391,11 +392,8 @@ MODULE_DEVICE_TABLE(of, st_rc_match); | |||
391 | static struct platform_driver st_rc_driver = { | 392 | static struct platform_driver st_rc_driver = { |
392 | .driver = { | 393 | .driver = { |
393 | .name = IR_ST_NAME, | 394 | .name = IR_ST_NAME, |
394 | .owner = THIS_MODULE, | ||
395 | .of_match_table = of_match_ptr(st_rc_match), | 395 | .of_match_table = of_match_ptr(st_rc_match), |
396 | #ifdef CONFIG_PM | ||
397 | .pm = &st_rc_pm_ops, | 396 | .pm = &st_rc_pm_ops, |
398 | #endif | ||
399 | }, | 397 | }, |
400 | .probe = st_rc_probe, | 398 | .probe = st_rc_probe, |
401 | .remove = st_rc_remove, | 399 | .remove = st_rc_remove, |