George Stark писал(а) 14.12.2023 03:30:
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().
Signed-off-by: George Stark <gnstark@xxxxxxxxxxxxxxxxx>
Thanks for noticing and fixing this!
Perhaps this patch needs a Fixes tag too, like 1/11?
Tested-by: Nikita Travkin <nikita@xxxxxxx>
Btw, seems like (5..11)/11 never arrived to the lists...
...
Nikita
---