Skip to content

Commit

Permalink
extcon: max77693: Fix uninitialised variable warning
Browse files Browse the repository at this point in the history
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
  • Loading branch information
Sachin Kamat authored and MyungJoo Ham committed Nov 21, 2012
1 parent f4bb5cb commit 3bf742f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/extcon/extcon-max77693.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3bf742f

Please sign in to comment.