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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index e8f8a1999393..a57300c1d649 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -571,7 +571,7 @@ static int linehandle_create(struct gpio_device *gdev, void __user *ip)
571 if (ret) 571 if (ret)
572 goto out_free_descs; 572 goto out_free_descs;
573 lh->descs[i] = desc; 573 lh->descs[i] = desc;
574 count = i; 574 count = i + 1;
575 575
576 if (lflags & GPIOHANDLE_REQUEST_ACTIVE_LOW) 576 if (lflags & GPIOHANDLE_REQUEST_ACTIVE_LOW)
577 set_bit(FLAG_ACTIVE_LOW, &desc->flags); 577 set_bit(FLAG_ACTIVE_LOW, &desc->flags);