George Stark
b5a0b81605
leds: lp3952: Use devm API to cleanup module's resources
...
In this driver LEDs are registered using devm_led_classdev_register()
so they are automatically unregistered after module's remove() is done.
led_classdev_unregister() calls module's led_set_brightness() to turn off
the LEDs and that callback uses resources which were destroyed already
in module's remove() so use devm API instead of remove().
Also drop explicit turning LEDs off from remove() due to they will be off
anyway by led_classdev_unregister().
Signed-off-by: George Stark <gnstark@salutedevices.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20240411161032.609544-5-gnstark@salutedevices.com
Signed-off-by: Lee Jones <lee@kernel.org>
2024-04-11 17:35:03 +01:00
..
2023-11-01 11:28:35 +00:00
2024-03-07 08:48:15 +00:00
2024-03-14 10:38:25 -07:00
2023-11-01 11:28:33 +00:00
2024-03-07 08:48:08 +00:00
2024-03-07 08:48:11 +00:00
2021-09-27 16:09:42 +02:00
2023-08-17 11:25:03 +01:00
2024-03-07 08:47:56 +00:00
2023-11-02 14:53:19 -10:00
2024-03-07 08:48:05 +00:00
2023-11-01 11:28:35 +00:00
2020-09-26 21:56:42 +02:00
2023-11-01 11:28:35 +00:00
2023-08-17 13:28:25 +01:00
2021-02-19 22:15:10 +01:00
2023-07-28 10:02:32 +01:00
2024-04-11 17:34:57 +01:00
2024-04-11 17:34:52 +01:00
2023-01-30 08:03:37 +00:00
2023-01-30 08:03:38 +00:00
2023-05-25 12:16:22 +01:00
2023-05-25 12:16:22 +01:00
2023-05-25 12:31:18 +01:00
2023-06-08 18:11:14 +01:00
2023-11-01 11:28:35 +00:00
2019-05-21 10:50:45 +02:00
2019-05-21 11:28:39 +02:00
2023-07-28 10:02:32 +01:00
2023-11-01 11:28:26 +00:00
2023-11-01 11:28:35 +00:00
2023-11-01 11:28:35 +00:00
2022-02-09 13:00:45 +00:00
2023-11-01 11:28:28 +00:00
2024-03-07 08:45:31 +00:00
2021-05-28 11:38:54 +02:00
2023-12-13 15:45:55 +00:00
2019-06-19 17:09:55 +02:00
2023-07-28 09:26:21 +01:00
2019-06-19 17:09:55 +02:00
2023-07-28 10:02:32 +01:00
2023-05-25 12:16:22 +01:00
2023-05-25 12:16:22 +01:00
2023-05-25 12:16:22 +01:00
2023-05-25 12:16:22 +01:00
2023-11-01 11:28:35 +00:00
2023-05-25 12:16:22 +01:00
2023-11-01 11:29:02 +00:00
2023-11-01 11:28:31 +00:00
2021-05-30 23:03:48 +02:00
2022-04-19 16:27:05 +02:00
2023-05-25 12:16:22 +01:00
2023-11-01 11:28:42 +00:00
2020-07-22 14:42:06 +02:00
2023-05-25 12:16:22 +01:00
2024-04-11 17:35:03 +01:00
2023-11-01 11:29:26 +00:00
2023-08-17 13:28:25 +01:00
2023-08-17 13:28:25 +01:00
2023-08-17 13:28:25 +01:00
2019-06-19 17:09:55 +02:00
2023-05-25 12:16:22 +01:00
2021-08-03 23:49:31 +02:00
2023-12-21 14:42:59 +00:00
2022-10-22 11:55:03 +02:00
2020-09-26 21:56:43 +02:00
2023-11-01 11:28:35 +00:00
2019-05-30 11:26:32 -07:00
2024-03-07 08:48:16 +00:00
2024-03-07 08:48:16 +00:00
2023-11-01 11:28:35 +00:00
2019-06-19 17:09:55 +02:00
2020-12-30 19:37:13 +01:00
2023-11-01 11:28:35 +00:00
2023-07-28 11:58:04 +01:00
2015-11-03 08:59:13 +01:00
2023-11-01 11:28:55 +00:00
2024-03-07 08:48:06 +00:00
2023-08-15 18:30:07 +01:00
2023-07-28 10:02:32 +01:00
2023-07-28 10:02:32 +01:00
2023-11-01 11:28:35 +00:00
2023-12-20 16:07:04 +01:00
2023-11-01 11:28:35 +00:00
2023-11-01 11:28:35 +00:00
2023-11-01 11:29:15 +00:00
2024-03-07 08:48:06 +00:00
2020-12-30 19:37:14 +01:00
2023-12-21 14:45:35 +00:00
2024-03-06 13:07:39 -08:00
2023-12-13 11:28:26 +00:00
2023-12-13 11:28:41 +00:00
2023-07-28 10:02:32 +01:00
2023-07-28 10:02:32 +01:00
2019-12-21 20:10:02 +01:00
2023-11-01 11:29:16 +00:00
2023-11-01 11:28:35 +00:00
2023-11-01 11:28:35 +00:00
2019-06-19 17:09:55 +02:00
2024-03-07 08:48:04 +00:00
2024-03-07 08:45:03 +00:00
2020-09-30 19:15:33 +02:00
2023-08-18 11:42:54 +01:00