aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/atom.c
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2024-06-06 20:29:22 +0300
committerLee Jones <[email protected]>2024-06-26 16:56:06 +0100
commit133f941f2239cbf8bd4b8a9c112e4811215149bf (patch)
tree747893c5f162a83349def288911f29cb3aef7852 /drivers/gpu/drm/amd/amdgpu/atom.c
parent9ed388d1acb9b8d1136f429573d14ade963ba727 (diff)
leds: spi-byte: Use devm_mutex_init() for mutex initialization
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 mutex which was destroyed already in module's remove() so use devm API instead. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atom.c')
0 files changed, 0 insertions, 0 deletions