Skip to content

Commit a054e38

Browse files
committed
power: supply: ln8411: Changes ln8411_remove() type to void
Updates ln8411_remove to be of type void to match upstream i2c_driver model interface. Change-Id: I90c78d36c22fdb8020d6702cebd4c611936a3116 Link: https://lore.kernel.org/linux-i2c/[email protected]/ Signed-off-by: Ricardo Rivera-Matos <[email protected]>
1 parent a45323a commit a054e38

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/power/supply/ln8411_charger.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2369,18 +2369,16 @@ static int ln8411_probe(struct i2c_client *client, const struct i2c_device_id *i
23692369
return ret;
23702370
}
23712371

2372-
static int ln8411_remove(struct i2c_client *client)
2372+
static void ln8411_remove(struct i2c_client *client)
23732373
{
23742374
struct ln8411_device *ln8411 = i2c_get_clientdata(client);
23752375
int ret;
23762376

23772377
ret = ln8411_soft_reset(ln8411);
23782378
if (ret)
2379-
return ret;
2379+
dev_err(ln8411->dev, "Failed to reset: %d\n", ret);
23802380

23812381
mutex_destroy(&ln8411->lock);
2382-
2383-
return ret;
23842382
}
23852383

23862384
static const struct i2c_device_id ln8411_i2c_ids[] = {

0 commit comments

Comments
 (0)