All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gpio: mb86s7x: Remove redundant platform_set_drvdata() call
@ 2016-03-09 12:48 Axel Lin
  2016-03-22 10:33 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2016-03-09 12:48 UTC (permalink / raw)
  To: Linus Walleij; +Cc: Jassi Brar, Alexandre Courbot, linux-gpio

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

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/gpio/gpio-mb86s7x.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpio/gpio-mb86s7x.c b/drivers/gpio/gpio-mb86s7x.c
index 7fffc1d..d23a942 100644
--- a/drivers/gpio/gpio-mb86s7x.c
+++ b/drivers/gpio/gpio-mb86s7x.c
@@ -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");
-- 
2.1.4




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-22 10:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-09 12:48 [PATCH] gpio: mb86s7x: Remove redundant platform_set_drvdata() call Axel Lin
2016-03-22 10:33 ` Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.