mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
extcon: max77693: Fix uninitialised variable warning
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
This commit is contained in:
parent
f4bb5cb54e
commit
3bf742ffd4
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue