These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / video / fbdev / omap2 / displays-new / panel-sharp-ls037v7dw01.c
index eae2637..abfd1f6 100644 (file)
@@ -268,17 +268,12 @@ static  int sharp_ls_get_gpio_of(struct device *dev, int index, int val,
        const char *desc, struct gpio_desc **gpiod)
 {
        struct gpio_desc *gd;
-       int r;
 
        *gpiod = NULL;
 
-       gd = devm_gpiod_get_index(dev, desc, index);
+       gd = devm_gpiod_get_index(dev, desc, index, GPIOD_OUT_LOW);
        if (IS_ERR(gd))
-               return PTR_ERR(gd) == -ENOENT ? 0 : PTR_ERR(gd);
-
-       r = gpiod_direction_output(gd, val);
-       if (r)
-               return r;
+               return PTR_ERR(gd);
 
        *gpiod = gd;
        return 0;