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

Commit 274a752b authored by Simon Baatz's avatar Simon Baatz Committed by Chris Ball
Browse files

mmc: tmio-mmc: handle mmc_of_parse() errors during probe

parent 2c9054dc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);