summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2023-05-30 01:14:45 +0300
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-06-01 09:52:31 +0200
commit2f804aca48322f02a8f44cca540663845ee80fb1 (patch)
treebe234a80482b12e8da85d7c66bc1eb81335588b4 /drivers/gpio
parent6dd032ba4474bc35216a76195889b2127d2aeaaa (diff)
downloadlwn-2f804aca48322f02a8f44cca540663845ee80fb1.tar.gz
lwn-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.c6
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: