Merge tag 'arm-dt-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-2.6-microblaze.git] / drivers / gpio / gpio-tps65910.c
index 0c0b445..7fa8c84 100644 (file)
@@ -165,16 +165,8 @@ static int tps65910_gpio_probe(struct platform_device *pdev)
        }
 
 skip_init:
-       ret = devm_gpiochip_add_data(&pdev->dev, &tps65910_gpio->gpio_chip,
-                                    tps65910_gpio);
-       if (ret < 0) {
-               dev_err(&pdev->dev, "Could not register gpiochip, %d\n", ret);
-               return ret;
-       }
-
-       platform_set_drvdata(pdev, tps65910_gpio);
-
-       return ret;
+       return devm_gpiochip_add_data(&pdev->dev, &tps65910_gpio->gpio_chip,
+                                     tps65910_gpio);
 }
 
 static struct platform_driver tps65910_gpio_driver = {