diff mbox

gpio: mb86s7x: Remove redundant platform_set_drvdata() call

Message ID 1457527695.720.4.camel@ingics.com
State New
Headers show

Commit Message

Axel Lin March 9, 2016, 12:48 p.m. UTC
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(-)

Comments

Linus Walleij March 22, 2016, 10:33 a.m. UTC | #1
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
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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");