]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
leds: lgm-sso: Remove explicit managed GPIO resource cleanup
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Sat, 29 May 2021 11:19:28 +0000 (14:19 +0300)
committerPavel 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

index ca9f88996819e70ac4a85fd973a11cd32c70e864..5c012ffeeaa855dd6d4549f45f6ec6e7de0f910c 100644 (file)
@@ -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;
 }