diff options
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 c6326e44e2c0..94467ddb3711 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c | |||
@@ -1051,7 +1051,7 @@ static void gpiochip_unexport(struct gpio_chip *chip) | |||
1051 | if (dev) { | 1051 | if (dev) { |
1052 | put_device(dev); | 1052 | put_device(dev); |
1053 | device_unregister(dev); | 1053 | device_unregister(dev); |
1054 | chip->exported = 0; | 1054 | chip->exported = false; |
1055 | status = 0; | 1055 | status = 0; |
1056 | } else | 1056 | } else |
1057 | status = -ENODEV; | 1057 | status = -ENODEV; |