mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
leds: lgm-sso: Remove explicit managed GPIO resource cleanup
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>
This commit is contained in:
parent
1ed4d05e0a
commit
c31ef7004e
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue