power: supply: Remove the use of dev_err_probe()
authorXichao Zhao <zhao.xichao@vivo.com>
Wed, 20 Aug 2025 04:04:41 +0000 (12:04 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 6 Sep 2025 21:49:06 +0000 (23:49 +0200)
commitc3a49515225e44b2593839a4b3fec70c39dc0c89
tree3f4f07e9ea02b40b2e3dd0d4cea6d64e88cc462a
parentd48d4e4f141b38944da3b0a9c21ce6828ec31d83
power: supply: Remove the use of dev_err_probe()

The dev_err_probe() doesn't do anything when error is '-ENOMEM'.
Therefore, remove the useless call to dev_err_probe(), and just
return the value instead.

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max77705_charger.c
drivers/power/supply/mt6370-charger.c
drivers/power/supply/sbs-manager.c