diff options
| author | 2026-08-27 10:05:39 +0800 | |
|---|---|---|
| committer | 2026-09-10 00:43:05 +0200 | |
| commit | 38c8b37600b63db724c9c21d18d9989359353cc4 (patch) | |
| tree | 44b77276ec134dbe6704531248398e7a7c473882 /scripts/Makefile.thinlto | |
| parent | power: supply: bq27xxx: synchronize work cancellation on suspend (diff) | |
power: supply: s2mu005-battery: return errors from dev_err_probe() in probe
s2mu005_fg_i2c_probe() calls dev_err_probe() when devm_mutex_init() or
devm_request_threaded_irq() fails, but drops the return value and
carries on, finally returning 0. A failed probe is then reported as a
success: the device stays registered with an uninitialized mutex and
without its IRQ handler installed.
Return the error from dev_err_probe() in both places so that the probe
fails and the driver core logs the error state properly.
Fixes: aa2132799817 ("power: supply: add support for S2MU005 battery fuel gauge device")
Cc: Yassine Oudjana <y.oudjana@protonmail.com>
Cc: Kaustabh Chakraborty <kauschluss@disroot.org>
Cc: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Zongmin Zhou <zhouzongmin@kylinos.cn>
Link: https://patch.msgid.link/20260827020539.22837-1-min_halo@163.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
