Commit 3ea0f285 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mauro Carvalho Chehab

[media] ir-hix5hd2: Fix build warning

Building for avr32 leads the following build warning:

drivers/media/rc/ir-hix5hd2.c:221: warning: passing argument 1 of 'IS_ERR' discards qualifiers from pointer target type
drivers/media/rc/ir-hix5hd2.c:222: warning: passing argument 1 of 'PTR_ERR' discards qualifiers from pointer target type

devm_ioremap_resource() returns void __iomem *, so change 'base' definition
accordingly.
Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 0fd355c8
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
struct hix5hd2_ir_priv { struct hix5hd2_ir_priv {
int irq; int irq;
void volatile __iomem *base; void __iomem *base;
struct device *dev; struct device *dev;
struct rc_dev *rdev; struct rc_dev *rdev;
struct regmap *regmap; struct regmap *regmap;
...@@ -213,8 +213,8 @@ static int hix5hd2_ir_probe(struct platform_device *pdev) ...@@ -213,8 +213,8 @@ static int hix5hd2_ir_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
priv->base = devm_ioremap_resource(dev, res); priv->base = devm_ioremap_resource(dev, res);
if (IS_ERR((__force void *)priv->base)) if (IS_ERR(priv->base))
return PTR_ERR((__force void *)priv->base); return PTR_ERR(priv->base);
priv->irq = platform_get_irq(pdev, 0); priv->irq = platform_get_irq(pdev, 0);
if (priv->irq < 0) { if (priv->irq < 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment