]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/pwm/pwm-renesas-tpu.c
pwm: simplify use of devm_ioremap_resource
[karo-tx-linux.git] / drivers / pwm / pwm-renesas-tpu.c
index 3eeffff6928025a92a77267dcc94221ded51193b..aff6ba9b49e7b4b3bac9d566af39f01c6136b6bb 100644 (file)
@@ -418,11 +418,6 @@ static int tpu_probe(struct platform_device *pdev)
 
        /* Map memory, get clock and pin control. */
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-       if (!res) {
-               dev_err(&pdev->dev, "failed to get I/O memory\n");
-               return -ENXIO;
-       }
-
        tpu->base = devm_ioremap_resource(&pdev->dev, res);
        if (IS_ERR(tpu->base))
                return PTR_ERR(tpu->base);