aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpiolib.c')
-rw-r--r--drivers/gpio/gpiolib.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 47a67c4deed4..3ee99d070608 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -4257,8 +4257,7 @@ EXPORT_SYMBOL_GPL(gpiod_get_index);
4257 * 4257 *
4258 * Returns: 4258 * Returns:
4259 * On successful request the GPIO pin is configured in accordance with 4259 * On successful request the GPIO pin is configured in accordance with
4260 * provided @dflags. If the node does not have the requested GPIO 4260 * provided @dflags.
4261 * property, NULL is returned.
4262 * 4261 *
4263 * In case of error an ERR_PTR() is returned. 4262 * In case of error an ERR_PTR() is returned.
4264 */ 4263 */
@@ -4280,9 +4279,6 @@ struct gpio_desc *gpiod_get_from_of_node(struct device_node *node,
4280 index, &flags); 4279 index, &flags);
4281 4280
4282 if (!desc || IS_ERR(desc)) { 4281 if (!desc || IS_ERR(desc)) {
4283 /* If it is not there, just return NULL */
4284 if (PTR_ERR(desc) == -ENOENT)
4285 return NULL;
4286 return desc; 4282 return desc;
4287 } 4283 }
4288 4284