gpio: mb86s7x: Remove redundant platform_set_drvdata() call
PATCH 1/1 gpio: mb86s7x: Remove redundant platform_set_drvdata() call
Set it once is enough, so remove the second platform_set_drvdata() call.
Signed-off-by Axel Lin <[email protected]>
--- drivers/gpio/gpio-mb86s7x.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpio/gpio-mb86s7x.c +0 -2
@@ -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
Quoted 3 lines · Axel Lin
Set it once is enough, so remove the second
platform_set_drvdata()call.Signed-off-by Axel Lin <[email protected]>
Patch applied for v4.7.
Yours,
Linus Walleij