Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Wolfram Sang and committed by
Linus Walleij
f50b9e12 dbf850c6

+1 -6
+1 -6
drivers/pinctrl/pinctrl-at91.c
··· 1543 1543 goto err; 1544 1544 } 1545 1545 1546 - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 1547 - if (!res) { 1548 - ret = -ENOENT; 1549 - goto err; 1550 - } 1551 - 1552 1546 irq = platform_get_irq(pdev, 0); 1553 1547 if (irq < 0) { 1554 1548 ret = irq; ··· 1555 1561 goto err; 1556 1562 } 1557 1563 1564 + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 1558 1565 at91_chip->regbase = devm_ioremap_resource(&pdev->dev, res); 1559 1566 if (IS_ERR(at91_chip->regbase)) { 1560 1567 ret = PTR_ERR(at91_chip->regbase);