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:
Simon Baatz 2013-06-09 22:14:13 +02:00 committed by Chris Ball
parent 2c9054dc10
commit 274a752b1a
1 changed files with 3 additions and 1 deletions

View File

@ -1001,7 +1001,9 @@ int tmio_mmc_host_probe(struct tmio_mmc_host **host,
if (!mmc) if (!mmc)
return -ENOMEM; return -ENOMEM;
mmc_of_parse(mmc); ret = mmc_of_parse(mmc);
if (ret < 0)
goto host_free;
pdata->dev = &pdev->dev; pdata->dev = &pdev->dev;
_host = mmc_priv(mmc); _host = mmc_priv(mmc);