From a3ee78ec6a5d9a86267a09de9ff27d4e0a21acca Mon Sep 17 00:00:00 2001 From: Charles Keepax Date: Fri, 25 Nov 2016 13:48:29 +0000 Subject: gpio: arizona: Remove pointless set of platform drvdata We use the gpio chip private data in all the callbacks so remove this redundant line of code. Signed-off-by: Charles Keepax Signed-off-by: Linus Walleij --- drivers/gpio/gpio-arizona.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'drivers/gpio') diff --git a/drivers/gpio/gpio-arizona.c b/drivers/gpio/gpio-arizona.c index 482462889c8f..ed41537ec831 100644 --- a/drivers/gpio/gpio-arizona.c +++ b/drivers/gpio/gpio-arizona.c @@ -140,8 +140,6 @@ static int arizona_gpio_probe(struct platform_device *pdev) goto err; } - platform_set_drvdata(pdev, arizona_gpio); - return ret; err: -- cgit v1.2.3-59-g8ed1b