summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn Lin <shawn.lin@rock-chips.com>2026-01-23 15:24:09 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2026-02-23 14:06:55 +0300
commit8ea84b50a95f4529a78161afd9b6bc7fa9f0fc55 (patch)
tree140394eb1686f7dcbe2e85d3c5728db7f47f0cf0
parent9b541ceaf5b462f852f35245add4f2d3afd579f4 (diff)
downloadlinux-8ea84b50a95f4529a78161afd9b6bc7fa9f0fc55.tar.xz
mmc: dw_mmc: Remove mshc alias support
Remove the long-deprecated mshc alias support, as the mmc core already provides alias functionality through the standard mmc alias. This eliminates the redundant dual-alias system. The driver now obtains the controller ID from struct mmc_host::index(supplied by mmc alias) instead of the legacy mshc alias. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/host/dw_mmc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index d7c5b13e48f9..d9a0ea41ef58 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -2817,13 +2817,10 @@ static int dw_mci_init_host_caps(struct dw_mci *host)
if (drv_data)
mmc->caps |= drv_data->common_caps;
- if (host->dev->of_node) {
- ctrl_id = of_alias_get_id(host->dev->of_node, "mshc");
- if (ctrl_id < 0)
- ctrl_id = 0;
- } else {
+ if (host->dev->of_node)
+ ctrl_id = mmc->index;
+ else
ctrl_id = to_platform_device(host->dev)->id;
- }
if (drv_data && drv_data->caps) {
if (ctrl_id >= drv_data->num_caps) {