]> git.karo-electronics.de Git - linux-beck.git/commitdiff
gpio: arizona: Remove pointless set of platform drvdata
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Fri, 25 Nov 2016 13:48:29 +0000 (13:48 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 7 Dec 2016 14:23:38 +0000 (15:23 +0100)
We use the gpio chip private data in all the callbacks so remove this
redundant line of code.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-arizona.c

index 482462889c8f18d05e557f2aa0616e587af6ba27..ed41537ec831f97d48aad68ede9dac5b2ccf067c 100644 (file)
@@ -140,8 +140,6 @@ static int arizona_gpio_probe(struct platform_device *pdev)
                goto err;
        }
 
-       platform_set_drvdata(pdev, arizona_gpio);
-
        return ret;
 
 err: