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:
parent
ae7480062f
commit
5175b0f4f5
1 changed files with 3 additions and 1 deletions
|
@ -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__,
|
||||
|
|
Loading…
Add table
Reference in a new issue