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: Venkat Gopalakrishnan <venkatg@codeaurora.org>
This commit is contained in:
Venkat Gopalakrishnan 2015-09-10 12:25:27 -07:00 committed by Subhash Jadavani
parent ae7480062f
commit 5175b0f4f5

View file

@ -3229,8 +3229,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__,