This reverts commit
108d23e322a247d9f89ba2e2742520ead0944cc9.
It turns out this causes a regression on the OMAP, Marvell
and Renesas.
Reported-by: Tony Lindgren <tony@atomide.com>
Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reported-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
struct gpio_desc *desc = &gdev->descs[i];
desc->gdev = gdev;
-
- if (chip->request) {
- status = chip->request(chip, i);
- if (status < 0)
- /* The GPIO is unavailable, so skip it */
- continue;
- }
-
/*
* REVISIT: most hardware initializes GPIOs as inputs
* (often with pullups enabled) so power usage is
*/
set_bit(FLAG_IS_OUT, &desc->flags);
}
-
- if (chip->free)
- chip->free(chip, i);
}
#ifdef CONFIG_PINCTRL