aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mfd/88pm860x-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/88pm860x-core.c b/drivers/mfd/88pm860x-core.c
index c270d0b268ad..30cf7eef2a8f 100644
--- a/drivers/mfd/88pm860x-core.c
+++ b/drivers/mfd/88pm860x-core.c
@@ -1190,6 +1190,7 @@ static int pm860x_probe(struct i2c_client *client,
1190 ret = PTR_ERR(chip->regmap_companion); 1190 ret = PTR_ERR(chip->regmap_companion);
1191 dev_err(&chip->companion->dev, 1191 dev_err(&chip->companion->dev,
1192 "Failed to allocate register map: %d\n", ret); 1192 "Failed to allocate register map: %d\n", ret);
1193 i2c_unregister_device(chip->companion);
1193 return ret; 1194 return ret;
1194 } 1195 }
1195 i2c_set_clientdata(chip->companion, chip); 1196 i2c_set_clientdata(chip->companion, chip);