These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / video / fbdev / omap2 / displays-new / panel-dpi.c
index eb8fd81..f7be348 100644 (file)
@@ -209,16 +209,9 @@ static int panel_dpi_probe_of(struct platform_device *pdev)
        struct videomode vm;
        struct gpio_desc *gpio;
 
-       gpio = devm_gpiod_get(&pdev->dev, "enable");
-
-       if (IS_ERR(gpio)) {
-               if (PTR_ERR(gpio) != -ENOENT)
-                       return PTR_ERR(gpio);
-               else
-                       gpio = NULL;
-       } else {
-               gpiod_direction_output(gpio, 0);
-       }
+       gpio = devm_gpiod_get_optional(&pdev->dev, "enable", GPIOD_OUT_LOW);
+       if (IS_ERR(gpio))
+               return PTR_ERR(gpio);
 
        ddata->enable_gpio = gpio;