Commit 3bf742ff authored by Sachin Kamat's avatar Sachin Kamat Committed by MyungJoo Ham

extcon: max77693: Fix uninitialised variable warning

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
parent f4bb5cb5
...@@ -672,9 +672,10 @@ static int __devinit max77693_muic_probe(struct platform_device *pdev) ...@@ -672,9 +672,10 @@ static int __devinit max77693_muic_probe(struct platform_device *pdev)
info->max77693->muic, info->max77693->muic,
&max77693_muic_regmap_config); &max77693_muic_regmap_config);
if (IS_ERR(info->max77693->regmap_muic)) { if (IS_ERR(info->max77693->regmap_muic)) {
ret = PTR_ERR(info->max77693->regmap_muic);
dev_err(max77693->dev, dev_err(max77693->dev,
"failed to allocate register map: %d\n", ret); "failed to allocate register map: %d\n", ret);
return PTR_ERR(info->max77693->regmap_muic); return ret;
} }
} }
platform_set_drvdata(pdev, info); platform_set_drvdata(pdev, info);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment