diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2015-04-14 15:24:15 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-05-13 15:24:26 -0400 |
commit | 2235cf63400928a2deeccf65735e611a2d8aae30 (patch) | |
tree | 5c35342714c1086c0251b09116e0800827e26d76 | |
parent | 3ea0f28559076982ae02935c27ea1a58dece65ab (diff) |
[media] st_rc: fix build warning
Building for avr32 leads the following build warning:
drivers/media/rc/st_rc.c:270: warning: passing argument 1 of 'IS_ERR' discards qualifiers from pointer target type
drivers/media/rc/st_rc.c:271: warning: passing argument 1 of 'PTR_ERR' discards qualifiers from pointer target type
devm_ioremap_resource() returns void __iomem *, so change 'base' and
'rx_base' definitions accordingly.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r-- | drivers/media/rc/st_rc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/rc/st_rc.c b/drivers/media/rc/st_rc.c index 50ea09da7739..979b40561b3a 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 | ||