mmc: tmio-mmc: 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
2c9054dc10
commit
274a752b1a
|
@ -1001,7 +1001,9 @@ int tmio_mmc_host_probe(struct tmio_mmc_host **host,
|
|||
if (!mmc)
|
||||
return -ENOMEM;
|
||||
|
||||
mmc_of_parse(mmc);
|
||||
ret = mmc_of_parse(mmc);
|
||||
if (ret < 0)
|
||||
goto host_free;
|
||||
|
||||
pdata->dev = &pdev->dev;
|
||||
_host = mmc_priv(mmc);
|
||||
|
|
Loading…
Reference in New Issue