diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-05-30 00:14:45 +0200 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-06-01 09:52:31 +0200 |
commit | 2f804aca48322f02a8f44cca540663845ee80fb1 (patch) | |
tree | be234a80482b12e8da85d7c66bc1eb81335588b4 /drivers/gpio | |
parent | Merge tag 'gpio-omap-descriptors-v6.5' of git://git.kernel.org/pub/scm/linux/... (diff) | |
download | linux-2f804aca48322f02a8f44cca540663845ee80fb1.tar.xz linux-2f804aca48322f02a8f44cca540663845ee80fb1.zip |
gpiolib: Kill unused GPIOF_EXPORT and Co
There is no use of the GPIOF_EXPORT in the kernel. Kill it for good.
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>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpiolib-legacy.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpio/gpiolib-legacy.c b/drivers/gpio/gpiolib-legacy.c index 30e2476a6dc4..c5cc828750b7 100644 --- a/drivers/gpio/gpiolib-legacy.c +++ b/drivers/gpio/gpiolib-legacy.c @@ -51,12 +51,6 @@ int gpio_request_one(unsigned gpio, unsigned long flags, const char *label) if (err) goto free_gpio; - if (flags & GPIOF_EXPORT) { - err = gpiod_export(desc, flags & GPIOF_EXPORT_CHANGEABLE); - if (err) - goto free_gpio; - } - return 0; free_gpio: |