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

drivers: gpio: mxc: 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>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Enrico Weigelt, metux IT consult and committed by
Linus Walleij
123ac0e5 dc02a0ca

+1 -3
+1 -3
drivers/gpio/gpio-mxc.c
··· 411 411 { 412 412 struct device_node *np = pdev->dev.of_node; 413 413 struct mxc_gpio_port *port; 414 - struct resource *iores; 415 414 int irq_base; 416 415 int err; 417 416 ··· 422 423 423 424 port->dev = &pdev->dev; 424 425 425 - iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); 426 - port->base = devm_ioremap_resource(&pdev->dev, iores); 426 + port->base = devm_platform_ioremap_resource(pdev, 0); 427 427 if (IS_ERR(port->base)) 428 428 return PTR_ERR(port->base); 429 429