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

Commit fba45d55 authored by Venkat Gopalakrishnan's avatar Venkat Gopalakrishnan
Browse files

mmc: sdhci-msm: Free pltfm_host on probe defer



The platform host has been initialized and should be freed
in case we defer the probe.

Change-Id: Iadce572fa4618b18f2fadf9e00812e75144af1c9
Signed-off-by: default avatarVenkat Gopalakrishnan <venkatg@codeaurora.org>
parent a5eb2c93
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2918,7 +2918,7 @@ static int sdhci_msm_probe(struct platform_device *pdev)
		 */
		dev_err(&pdev->dev, "%s: required ICE device not probed yet err = %d\n",
			__func__, ret);
		goto out_host_free;
		goto pltfm_free;

	} else if (ret == -ENODEV) {
		/*
@@ -2930,7 +2930,7 @@ static int sdhci_msm_probe(struct platform_device *pdev)
	} else if (ret) {
		dev_err(&pdev->dev, "%s: sdhci_msm_ice_get_dev failed %d\n",
			__func__, ret);
		goto out_host_free;
		goto pltfm_free;
	}

	/* Extract platform data */