media: rcar_drif: Remove devm_ioremap_resource() error printing
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 1 Mar 2019 09:38:31 +0000 (04:38 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 19 Mar 2019 17:44:38 +0000 (13:44 -0400)
devm_ioremap_resource() already prints an error message on failure, so
there is no need to repeat that.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/rcar_drif.c

index c417ff8f6fe548f3d0c1e6682b8d0d4a4896045b..608e5217ccd50a1b63b1fd8904eb4738015e2f19 100644 (file)
@@ -1405,11 +1405,9 @@ static int rcar_drif_probe(struct platform_device *pdev)
        /* Register map */
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        ch->base = devm_ioremap_resource(&pdev->dev, res);
-       if (IS_ERR(ch->base)) {
-               ret = PTR_ERR(ch->base);
-               dev_err(&pdev->dev, "ioremap failed (%d)\n", ret);
-               return ret;
-       }
+       if (IS_ERR(ch->base))
+               return PTR_ERR(ch->base);
+
        ch->start = res->start;
        platform_set_drvdata(pdev, ch);