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

Commit 9aac0330 authored by Ram Prakash Gupta's avatar Ram Prakash Gupta Committed by Sarthak Garg
Browse files

mmc: sdhci-msm: Fix slot indexing in driver



Fix slot indexing in driver for mmc and sdcard per
new indexing in dt.

Change-Id: Ie960cd9c1a616c1a9d98aa862a3944515d184628
Signed-off-by: default avatarRam Prakash Gupta <quic_rampraka@quicinc.com>
Signed-off-by: default avatarSarthak Garg <quic_sartgarg@quicinc.com>
parent d4f2423d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -4301,10 +4301,10 @@ static int sdhci_msm_probe(struct platform_device *pdev)

	if (pdev->dev.of_node) {
		ret = of_alias_get_id(pdev->dev.of_node, "sdhc");
		if (ret <= 0)
		if (ret < 0)
			dev_err(&pdev->dev, "get slot index failed %d\n", ret);
		else if (ret <= 2)
			sdhci_slot[ret-1] = msm_host;
		else if (ret <= 1)
			sdhci_slot[ret] = msm_host;
	}

	/*