We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1253baa commit 9e238e3Copy full SHA for 9e238e3
drivers/gpio/gpiolib.c
@@ -1221,14 +1221,6 @@ int gpiochip_add_data(struct gpio_chip *chip, void *data)
1221
struct gpio_desc *desc = &gdev->descs[i];
1222
1223
desc->gdev = gdev;
1224
-
1225
- if (chip->request) {
1226
- status = chip->request(chip, i);
1227
- if (status < 0)
1228
- /* The GPIO is unavailable, so skip it */
1229
- continue;
1230
- }
1231
1232
/*
1233
* REVISIT: most hardware initializes GPIOs as inputs
1234
* (often with pullups enabled) so power usage is
@@ -1254,9 +1246,6 @@ int gpiochip_add_data(struct gpio_chip *chip, void *data)
1254
1246
*/
1255
1247
set_bit(FLAG_IS_OUT, &desc->flags);
1256
1248
}
1257
1258
- if (chip->free)
1259
- chip->free(chip, i);
1260
1249
1261
1250
1262
1251
#ifdef CONFIG_PINCTRL
0 commit comments