summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-02-05 19:35:12 +0100
committerSebastian Reichel <sebastian.reichel@collabora.com>2022-02-11 19:52:56 +0100
commite83c7204f185c598b5b933ea5511b062b26afb67 (patch)
tree092135ee1ee78317ef09f72125a0b4da31285aff /drivers/power
parenta942f913a902e13218e3bdba3088b58124f63a44 (diff)
downloadlinux-e83c7204f185c598b5b933ea5511b062b26afb67.tar.bz2
power: supply: rt9455: Don't pass an error code in remove callback
When ret is not zero there were already one or two error messages emitted about a problem (because rt9455_register_reset() emits a message in most cases then). Passing on that error code to the i2c core only results in another error message. Suppress that by returning zero unconditionally. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/rt9455_charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/rt9455_charger.c b/drivers/power/supply/rt9455_charger.c
index 594bb3b8a4d1..74ee54320e6a 100644
--- a/drivers/power/supply/rt9455_charger.c
+++ b/drivers/power/supply/rt9455_charger.c
@@ -1716,7 +1716,7 @@ static int rt9455_remove(struct i2c_client *client)
cancel_delayed_work_sync(&info->max_charging_time_work);
cancel_delayed_work_sync(&info->batt_presence_work);
- return ret;
+ return 0;
}
static const struct i2c_device_id rt9455_i2c_id_table[] = {