mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
mmc: sh_mmcif: handle mmc_of_parse() errors during probe
Signed-off-by: Simon Baatz <gmbnomis@gmail.com> Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
parent
ec0a7517dc
commit
2c9054dc10
1 changed files with 6 additions and 1 deletions
|
@ -1370,7 +1370,11 @@ static int sh_mmcif_probe(struct platform_device *pdev)
|
|||
ret = -ENOMEM;
|
||||
goto ealloch;
|
||||
}
|
||||
mmc_of_parse(mmc);
|
||||
|
||||
ret = mmc_of_parse(mmc);
|
||||
if (ret < 0)
|
||||
goto eofparse;
|
||||
|
||||
host = mmc_priv(mmc);
|
||||
host->mmc = mmc;
|
||||
host->addr = reg;
|
||||
|
@ -1465,6 +1469,7 @@ static int sh_mmcif_probe(struct platform_device *pdev)
|
|||
clk_put(host->hclk);
|
||||
eclkget:
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
eofparse:
|
||||
mmc_free_host(mmc);
|
||||
ealloch:
|
||||
iounmap(reg);
|
||||
|
|
Loading…
Reference in a new issue