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

Commit f50b9e12 authored by Wolfram Sang's avatar Wolfram Sang Committed by Linus Walleij
Browse files

drivers/pinctrl: don't check resource with devm_ioremap_resource



devm_ioremap_resource does sanity checks on the given resource. No need to
duplicate this in the driver.

Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
Acked-by: default avatarJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent dbf850c6
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -1543,12 +1543,6 @@ static int at91_gpio_probe(struct platform_device *pdev)
		goto err;
	}

	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	if (!res) {
		ret = -ENOENT;
		goto err;
	}

	irq = platform_get_irq(pdev, 0);
	if (irq < 0) {
		ret = irq;
@@ -1561,6 +1555,7 @@ static int at91_gpio_probe(struct platform_device *pdev)
		goto err;
	}

	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	at91_chip->regbase = devm_ioremap_resource(&pdev->dev, res);
	if (IS_ERR(at91_chip->regbase)) {
		ret = PTR_ERR(at91_chip->regbase);