kernel: ubnt-ledbar: use dev_err_probe
authorRosen Penev <rosenp@gmail.com>
Sun, 22 Sep 2024 18:27:13 +0000 (11:27 -0700)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 3 Oct 2024 14:39:38 +0000 (16:39 +0200)
commitf09d973d14bc15229e31095bf887ee0bd2740bad
tree617bf32d4ac11261b23d0d05b25950449ebe891e
parent4705398bbf1070200e83d9a6da521eb41f649da8
kernel: ubnt-ledbar: use dev_err_probe

Handles EPROBE_DEFER and simplifies the code.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16508
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/kernel/ubnt-ledbar/src/leds-ubnt-ledbar.c