cpufreq: intel_pstate: Fix fast-switch fallback path
[linux-2.6-microblaze.git] / drivers / gpio / gpio-cs5535.c
index 53b24e3..6da3a24 100644 (file)
@@ -345,12 +345,8 @@ static int cs5535_gpio_probe(struct platform_device *pdev)
                                mask_orig, mask);
 
        /* finally, register with the generic GPIO API */
-       err = devm_gpiochip_add_data(&pdev->dev, &cs5535_gpio_chip.chip,
-                                    &cs5535_gpio_chip);
-       if (err)
-               return err;
-
-       return 0;
+       return devm_gpiochip_add_data(&pdev->dev, &cs5535_gpio_chip.chip,
+                                     &cs5535_gpio_chip);
 }
 
 static struct platform_driver cs5535_gpio_driver = {