kernel: ubnt-ledbar: use devm_mutex_init
authorRosen Penev <rosenp@gmail.com>
Fri, 4 Oct 2024 20:27:26 +0000 (13:27 -0700)
committerRobert Marko <robimarko@gmail.com>
Tue, 8 Oct 2024 17:21:43 +0000 (19:21 +0200)
commit3483f63c563298186b351111d6b8ec06b935ba4d
tree24398258d8acf454bc327356ca2d07af0061bb29
parent7d33aedd10bab0d8023d608f6f900b2915c69456
kernel: ubnt-ledbar: use devm_mutex_init

Allows remove the _remove function as devm calls mutex_destroy
automatically.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16615
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/kernel/ubnt-ledbar/src/leds-ubnt-ledbar.c