Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8583422 authored by Axel Lin's avatar Axel Lin Committed by Linus Walleij
Browse files

gpio: mb86s7x: Remove redundant platform_set_drvdata() call



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

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 86d3f367
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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");