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

Commit 475c9e43 authored by Eric Anholt's avatar Eric Anholt Committed by Ulf Hansson
Browse files

mmc: sdhci-bcm2835: Clean up platform allocations if sdhci init fails.

parent 74fd5e30
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -173,8 +173,11 @@ static int bcm2835_sdhci_probe(struct platform_device *pdev)
		goto err;
	}

	return sdhci_add_host(host);
	ret = sdhci_add_host(host);
	if (ret)
		goto err;

	return 0;
err:
	sdhci_pltfm_free(pdev);
	return ret;