Skip to contentSkip to conversation

gpio: mb86s7x: Remove redundant platform_set_drvdata() call

PATCH In review Axel Lin 2 participants 2 messages Mar 9, 2016 – Mar 22, 2016 GPIO

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 gpio: mb86s7x: Remove redundant platform_set_drvdata() call

Set it once is enough, so remove the second platform_set_drvdata() call.

---
 drivers/gpio/gpio-mb86s7x.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpio/gpio-mb86s7x.c +0 -2
index 7fffc1d..d23a942 100644
@@ -185,8 +185,6 @@ static int mb86s70_gpio_probe(struct platform_device *pdev)
 	gchip->gc.parent = &pdev->dev;
 	gchip->gc.base = -1;
 
-	platform_set_drvdata(pdev, gchip);
-
 	ret = gpiochip_add_data(&gchip->gc, gchip);
 	if (ret) {
 		dev_err(&pdev->dev, "couldn't register gpio driver\n");
Signature · 1 line
2.1.4