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

Commit 2b96669a authored by Venkat Gopalakrishnan's avatar Venkat Gopalakrishnan
Browse files

mmc: sdhci-msm: return correct error code if emmc is not bootdevice



Update the error code to ENODEV if eMMC is not the boot device.

Change-Id: Ide0863a5aa64f9990d39095de6f6b13f752a6b3e
Signed-off-by: default avatarVenkat Gopalakrishnan <venkatg@codeaurora.org>
parent 9fffca4f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3172,8 +3172,10 @@ static int sdhci_msm_probe(struct platform_device *pdev)
		}

		/* skip the probe if eMMC isn't a boot device */
		if ((ret == 1) && !sdhci_msm_is_bootdevice(&pdev->dev))
		if ((ret == 1) && !sdhci_msm_is_bootdevice(&pdev->dev)) {
			ret = -ENODEV;
			goto pltfm_free;
		}

		if (disable_slots & (1 << (ret - 1))) {
			dev_info(&pdev->dev, "%s: Slot %d disabled\n", __func__,