Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5bb54289 authored by Varka Bhadram's avatar Varka Bhadram Committed by Linus Walleij
Browse files

gpio: gpio-davinci: remove duplicate check on resource



Sanity check on resource happening with devm_ioremap_resource().

Signed-off-by: default avatarVarka Bhadram <varkab@cdac.in>
Acked-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 2071d096
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -234,11 +234,6 @@ static int davinci_gpio_probe(struct platform_device *pdev)
		return -ENOMEM;

	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	if (!res) {
		dev_err(dev, "Invalid memory resource\n");
		return -EBUSY;
	}

	gpio_base = devm_ioremap_resource(dev, res);
	if (IS_ERR(gpio_base))
		return PTR_ERR(gpio_base);