Skip to content

Commit c31ef70

Browse files
andy-shevpavelmachek
authored andcommitted
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>
1 parent 1ed4d05 commit c31ef70

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/leds/blink/leds-lgm-sso.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,9 +611,6 @@ static void sso_led_shutdown(struct sso_led *led)
611611
if (led->desc.hw_trig)
612612
regmap_update_bits(priv->mmap, SSO_CON3, BIT(led->desc.pin), 0);
613613

614-
if (led->gpiod)
615-
devm_gpiod_put(priv->dev, led->gpiod);
616-
617614
led->priv = NULL;
618615
}
619616

0 commit comments

Comments
 (0)