Commit b0ce9ce4 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Bartosz Golaszewski

gpiolib: Do not unexport GPIO on freeing

Since the legacy exporting is gone with 2f804aca ("gpiolib:
Kill unused GPIOF_EXPORT and Co") there is no need to unexport
GPIO on freeing. Remove that call.

Note, the other users of this functionality do that explicitly,
except one SH and one OMAP boardfile which don't free GPIO anyways,
so it is safe to drop the call.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
parent be6736cc
......@@ -2117,8 +2117,6 @@ static bool gpiod_free_commit(struct gpio_desc *desc)
might_sleep();
gpiod_unexport(desc);
spin_lock_irqsave(&gpio_lock, flags);
gc = desc->gdev->chip;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment