diff options
| author | Andy Shevchenko <[email protected]> | 2023-08-14 11:26:15 +0000 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2023-08-16 11:34:31 +0000 |
| commit | 20d9b3b5f2749673e1b5e9c8b0846ff6deff4032 (patch) | |
| tree | 0551da953cff983dde57ff9ceaa237f51527e1d2 /tools/perf/scripts/python/sctop.py | |
| parent | MAINTAINERS: add content regex for gpio-regmap (diff) | |
| download | kernel-20d9b3b5f2749673e1b5e9c8b0846ff6deff4032.tar.gz kernel-20d9b3b5f2749673e1b5e9c8b0846ff6deff4032.zip | |
gpiolib: sysfs: Do unexport GPIO when user asks for it
It seems that sysfs interface implicitly relied on the gpiod_free() to
unexport the line. This is logically incorrect as core gpiolib should
not deal with sysfs so instead of restoring it, let's call
gpiod_unexport() from sysfs code.
Fixes: b0ce9ce408b6 ("gpiolib: Do not unexport GPIO on freeing")
Reported-by: Marek BehĂșn <[email protected]>
Closes: https://lore.kernel.org/r/20230808102828.4a9eac09@dellmb
Signed-off-by: Andy Shevchenko <[email protected]>
Tested-by: Marek BehĂșn <[email protected]>
[Bartosz: tweaked the commit message]
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions
