aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/tps65090.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-04-24 21:30:36 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2012-05-09 11:47:24 -0400
commitb683a0a675560307ebc458cf9044d98d27820b7c (patch)
treefc97cbdb3da5091023af5f150117ecebf772ed57 /drivers/mfd/tps65090.c
parent1379f49ea91a28f5c023d041aab785c3de60c65d (diff)
mfd: Return proper error if tps65090 regmap_init_i2c fails
Return proper error instead of 0 if regmap_init_i2c fails. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Venu Byravarasu <vbyravarasu@nvidia.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/tps65090.c')
-rw-r--r--drivers/mfd/tps65090.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c
index 6dc4c345ea68..d9940870a688 100644
--- a/drivers/mfd/tps65090.c
+++ b/drivers/mfd/tps65090.c
@@ -297,10 +297,10 @@ static int __devinit tps65090_i2c_probe(struct i2c_client *client,
297 tps65090->rmap = regmap_init_i2c(tps65090->client, 297 tps65090->rmap = regmap_init_i2c(tps65090->client,
298 &tps65090_regmap_config); 298 &tps65090_regmap_config);
299 if (IS_ERR(tps65090->rmap)) { 299 if (IS_ERR(tps65090->rmap)) {
300 dev_err(&client->dev, "regmap_init failed with err: %ld\n", 300 ret = PTR_ERR(tps65090->rmap);
301 PTR_ERR(tps65090->rmap)); 301 dev_err(&client->dev, "regmap_init failed with err: %d\n", ret);
302 goto err_irq_exit; 302 goto err_irq_exit;
303 }; 303 }
304 304
305 ret = mfd_add_devices(tps65090->dev, -1, tps65090s, 305 ret = mfd_add_devices(tps65090->dev, -1, tps65090s,
306 ARRAY_SIZE(tps65090s), NULL, 0); 306 ARRAY_SIZE(tps65090s), NULL, 0);