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 <axel.lin@ingics.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Axel Lin 2016-03-09 20:48:15 +08:00 коммит произвёл Linus Walleij
Родитель 86d3f36768
Коммит f85834229b
1 изменённых файлов: 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");