diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-11-21 10:04:57 +0530 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2012-11-21 20:06:38 +0900 |
commit | 3bf742ffd48e7d1cea864741a123203207b33b80 (patch) | |
tree | dbe0dff663b557e1cd414448e57c7e63f4c22f54 /drivers | |
parent | f4bb5cb54eb97fee9b4e076df8df68b91861b934 (diff) |
extcon: max77693: Fix uninitialised variable warning
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/extcon/extcon-max77693.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c index 93ca93f26f4..8bf5e4835b4 100644 --- a/drivers/extcon/extcon-max77693.c +++ b/drivers/extcon/extcon-max77693.c @@ -672,9 +672,10 @@ static int __devinit max77693_muic_probe(struct platform_device *pdev) info->max77693->muic, &max77693_muic_regmap_config); if (IS_ERR(info->max77693->regmap_muic)) { + ret = PTR_ERR(info->max77693->regmap_muic); dev_err(max77693->dev, "failed to allocate register map: %d\n", ret); - return PTR_ERR(info->max77693->regmap_muic); + return ret; } } platform_set_drvdata(pdev, info); |