* [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
* Re: [PATCH] gpio: mb86s7x: Remove redundant platform_set_drvdata() call
2016-03-09 12:48 [PATCH] gpio: mb86s7x: Remove redundant platform_set_drvdata() call Axel Lin
@ 2016-03-22 10:33 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2016-03-22 10:33 UTC (permalink / raw)
To: Axel Lin; +Cc: Jassi Brar, Alexandre Courbot, linux-gpio@vger.kernel.org
On Wed, Mar 9, 2016 at 1:48 PM, Axel Lin <axel.lin@ingics.com> wrote:
> Set it once is enough, so remove the second platform_set_drvdata() call.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
Patch applied for v4.7.
Yours,
Linus Walleij
^ permalink raw reply [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.