diff options
author | Kent Gibson <warthog618@gmail.com> | 2020-02-24 15:49:53 +0100 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-03-02 08:52:55 +0100 |
commit | 48543bd8e92880b1ca81b15cf392103dc82cd3e0 (patch) | |
tree | 62450c1ddbc5a9e1b4bf26bd48f50dee07ba216a /drivers/gpio/gpiolib.c | |
parent | gpiolib: Rename 'event' to 'ge' to be consistent with other use (diff) | |
download | linux-48543bd8e92880b1ca81b15cf392103dc82cd3e0.tar.xz linux-48543bd8e92880b1ca81b15cf392103dc82cd3e0.zip |
gpiolib: fix unwatch ioctl()
Fix the field having a bit cleared by the unwatch ioctl().
Fixes: 51c1064e82e7 ("gpiolib: add new ioctl() for monitoring changes in line info")
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpio/gpiolib.c')
-rw-r--r-- | drivers/gpio/gpiolib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 2982d983c4fd..20683695c598 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -1276,7 +1276,7 @@ static long gpio_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) if (IS_ERR(desc)) return PTR_ERR(desc); - clear_bit(desc_to_gpio(desc), &desc->flags); + clear_bit(desc_to_gpio(desc), priv->watched_lines); return 0; } return -EINVAL; |