Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Shawn Lin and committed by
Ulf Hansson
8ea84b50 9b541cea

+3 -6
+3 -6
drivers/mmc/host/dw_mmc.c
··· 2817 2817 if (drv_data) 2818 2818 mmc->caps |= drv_data->common_caps; 2819 2819 2820 - if (host->dev->of_node) { 2821 - ctrl_id = of_alias_get_id(host->dev->of_node, "mshc"); 2822 - if (ctrl_id < 0) 2823 - ctrl_id = 0; 2824 - } else { 2820 + if (host->dev->of_node) 2821 + ctrl_id = mmc->index; 2822 + else 2825 2823 ctrl_id = to_platform_device(host->dev)->id; 2826 - } 2827 2824 2828 2825 if (drv_data && drv_data->caps) { 2829 2826 if (ctrl_id >= drv_data->num_caps) {