projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ed4d05
)
leds: lgm-sso: Remove explicit managed GPIO resource cleanup
author
Andy Shevchenko
<andy.shevchenko@gmail.com>
Sat, 29 May 2021 11:19:28 +0000
(14:19 +0300)
committer
Pavel Machek
<pavel@ucw.cz>
Tue, 3 Aug 2021 21:46:12 +0000
(23:46 +0200)
The idea of managed resources is that they will be cleaned up automatically
and in the proper order. Remove explicit GPIO cleanup.
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/blink/leds-lgm-sso.c
patch
|
blob
|
history
diff --git
a/drivers/leds/blink/leds-lgm-sso.c
b/drivers/leds/blink/leds-lgm-sso.c
index ca9f88996819e70ac4a85fd973a11cd32c70e864..5c012ffeeaa855dd6d4549f45f6ec6e7de0f910c 100644
(file)
--- a/
drivers/leds/blink/leds-lgm-sso.c
+++ b/
drivers/leds/blink/leds-lgm-sso.c
@@
-611,9
+611,6
@@
static void sso_led_shutdown(struct sso_led *led)
if (led->desc.hw_trig)
regmap_update_bits(priv->mmap, SSO_CON3, BIT(led->desc.pin), 0);
- if (led->gpiod)
- devm_gpiod_put(priv->dev, led->gpiod);
-
led->priv = NULL;
}