Skip to content

Commit b0ce9ce

Browse files
andy-shevBartosz Golaszewski
authored andcommitted
gpiolib: Do not unexport GPIO on freeing
Since the legacy exporting is gone with 2f804ac ("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: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent be6736c commit b0ce9ce

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/gpio/gpiolib.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2117,8 +2117,6 @@ static bool gpiod_free_commit(struct gpio_desc *desc)
21172117

21182118
might_sleep();
21192119

2120-
gpiod_unexport(desc);
2121-
21222120
spin_lock_irqsave(&gpio_lock, flags);
21232121

21242122
gc = desc->gdev->chip;

0 commit comments

Comments
 (0)