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: kbuild test robot <fengguang...@intel.com>
Signed-off-by: Fabio Estevam <fabio.este...@freescale.com>
---
 drivers/media/rc/ir-hix5hd2.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/media/rc/ir-hix5hd2.c b/drivers/media/rc/ir-hix5hd2.c
index 58ec598..3385148 100644
--- a/drivers/media/rc/ir-hix5hd2.c
+++ b/drivers/media/rc/ir-hix5hd2.c
@@ -63,7 +63,7 @@
 
 struct hix5hd2_ir_priv {
        int                     irq;
-       void volatile __iomem   *base;
+       void __iomem            *base;
        struct device           *dev;
        struct rc_dev           *rdev;
        struct regmap           *regmap;
@@ -213,8 +213,8 @@ static int hix5hd2_ir_probe(struct platform_device *pdev)
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        priv->base = devm_ioremap_resource(dev, res);
-       if (IS_ERR((__force void *)priv->base))
-               return PTR_ERR((__force void *)priv->base);
+       if (IS_ERR(priv->base))
+               return PTR_ERR(priv->base);
 
        priv->irq = platform_get_irq(pdev, 0);
        if (priv->irq < 0) {
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to