]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: most: dim2: use dev_err_probe and proper error codes for clock
authorArtem Lytkin <iprintercanon@gmail.com>
Tue, 24 Feb 2026 18:07:49 +0000 (21:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Feb 2026 15:03:40 +0000 (07:03 -0800)
commitb7a013c12504ba6468e098fab5b91011079daf57
treeb38c5292aa19ced288a2426bd3dd230714974cc1
parent24b28dc2189790810dbbc29e01759aed39dff5e3
staging: most: dim2: use dev_err_probe and proper error codes for clock

Replace hardcoded -EFAULT returns with dev_err_probe() and PTR_ERR()
when devm_clk_get() fails in fsl_mx6_enable(). This ensures the
correct error code is propagated (e.g. -EPROBE_DEFER for deferred
probing) and avoids log noise during probe deferral.

Signed-off-by: Artem Lytkin <iprintercanon@gmail.com>
Link: https://patch.msgid.link/20260224180750.28468-3-iprintercanon@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/dim2/dim2.c