|
@@ -185,8 +185,6 @@ static int mb86s70_gpio_probe(struct platform_device *pdev)
|
|
gchip->gc.parent = &pdev->dev;
|
|
gchip->gc.parent = &pdev->dev;
|
|
gchip->gc.base = -1;
|
|
gchip->gc.base = -1;
|
|
|
|
|
|
- platform_set_drvdata(pdev, gchip);
|
|
|
|
-
|
|
|
|
ret = gpiochip_add_data(&gchip->gc, gchip);
|
|
ret = gpiochip_add_data(&gchip->gc, gchip);
|
|
if (ret) {
|
|
if (ret) {
|
|
dev_err(&pdev->dev, "couldn't register gpio driver\n");
|
|
dev_err(&pdev->dev, "couldn't register gpio driver\n");
|