Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c9054dc authored by Simon Baatz's avatar Simon Baatz Committed by Chris Ball
Browse files

mmc: sh_mmcif: handle mmc_of_parse() errors during probe

parent ec0a7517
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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 @@ eclkupdate:
	clk_put(host->hclk);
eclkget:
	pm_runtime_disable(&pdev->dev);
eofparse:
	mmc_free_host(mmc);
ealloch:
	iounmap(reg);