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

Commit 94e408dd authored by Venkat Gopalakrishnan's avatar Venkat Gopalakrishnan Committed by Vijay Viswanath
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 a134670c
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -4350,7 +4350,7 @@ static int sdhci_msm_probe(struct platform_device *pdev)
		 */
		 */
		dev_err(&pdev->dev, "%s: required ICE device not probed yet err = %d\n",
		dev_err(&pdev->dev, "%s: required ICE device not probed yet err = %d\n",
			__func__, ret);
			__func__, ret);
		goto out_host_free;
		goto pltfm_free;


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


	/* Extract platform data */
	/* Extract platform data */