]> git.karo-electronics.de Git - linux-beck.git/commitdiff
gpio: bcm-kona: Use devm_gpiochip_add_data() for gpio registration
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 22 Feb 2016 12:13:28 +0000 (17:43 +0530)
committerLaxman Dewangan <ldewangan@nvidia.com>
Tue, 23 Feb 2016 15:05:13 +0000 (20:35 +0530)
Use devm_gpiochip_add_data() for GPIO registration.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Cc: Ray Jui <rjui@broadcom.com>
Acked-by: Ray Jui <ray.jui@broadcom.com>
drivers/gpio/gpio-bcm-kona.c

index b6c5abe85dafef89d001b55d3b278de830a9ce5a..2fd38d598f3de8912e19fdddc1f13b1194ef393e 100644 (file)
@@ -630,7 +630,7 @@ static int bcm_kona_gpio_probe(struct platform_device *pdev)
 
        bcm_kona_gpio_reset(kona_gpio);
 
-       ret = gpiochip_add_data(chip, kona_gpio);
+       ret = devm_gpiochip_add_data(dev, chip, kona_gpio);
        if (ret < 0) {
                dev_err(dev, "Couldn't add GPIO chip -- %d\n", ret);
                goto err_irq_domain;