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

drivers: gpio: rcar: use devm_platform_ioremap_resource()

Use the new helper that wraps the calls to platform_get_resource()
and devm_ioremap_resource() together.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Enrico Weigelt, metux IT consult and committed by
Linus Walleij
ecbf7c2e 542c25b7

+2 -3
+2 -3
drivers/gpio/gpio-rcar.c
··· 430 430 static int gpio_rcar_probe(struct platform_device *pdev) 431 431 { 432 432 struct gpio_rcar_priv *p; 433 - struct resource *io, *irq; 433 + struct resource *irq; 434 434 struct gpio_chip *gpio_chip; 435 435 struct irq_chip *irq_chip; 436 436 struct device *dev = &pdev->dev; ··· 461 461 goto err0; 462 462 } 463 463 464 - io = platform_get_resource(pdev, IORESOURCE_MEM, 0); 465 - p->base = devm_ioremap_resource(dev, io); 464 + p->base = devm_platform_ioremap_resource(pdev, 0); 466 465 if (IS_ERR(p->base)) { 467 466 ret = PTR_ERR(p->base); 468 467 goto err0;