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

mmc: core: remove unused host parameter of mmc_sd_get_csd()

The host parameter is not used in the body of mmc_sd_get_csd(),
so let's remove it. Update related code at the same time.

Signed-off-by: Yue Hu <huyue2@yulong.com>
Link: https://lore.kernel.org/r/20210118084520.241-1-zbestahu@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Yue Hu and committed by
Ulf Hansson
bd7342fe 37af07d9

+4 -4
+2 -2
drivers/mmc/core/sd.c
··· 860 860 return err; 861 861 } 862 862 863 - int mmc_sd_get_csd(struct mmc_host *host, struct mmc_card *card) 863 + int mmc_sd_get_csd(struct mmc_card *card) 864 864 { 865 865 int err; 866 866 ··· 1046 1046 } 1047 1047 1048 1048 if (!oldcard) { 1049 - err = mmc_sd_get_csd(host, card); 1049 + err = mmc_sd_get_csd(card); 1050 1050 if (err) 1051 1051 goto free_card; 1052 1052
+1 -1
drivers/mmc/core/sd.h
··· 10 10 struct mmc_card; 11 11 12 12 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr); 13 - int mmc_sd_get_csd(struct mmc_host *host, struct mmc_card *card); 13 + int mmc_sd_get_csd(struct mmc_card *card); 14 14 void mmc_decode_cid(struct mmc_card *card); 15 15 int mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card, 16 16 bool reinit);
+1 -1
drivers/mmc/core/sdio.c
··· 751 751 * Read CSD, before selecting the card 752 752 */ 753 753 if (!oldcard && card->type == MMC_TYPE_SD_COMBO) { 754 - err = mmc_sd_get_csd(host, card); 754 + err = mmc_sd_get_csd(card); 755 755 if (err) 756 756 goto remove; 757 757