mmc: core: remove unused host parameter of mmc_sd_get_csd()
authorYue Hu <huyue2@yulong.com>
Mon, 18 Jan 2021 08:45:20 +0000 (16:45 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 1 Feb 2021 10:54:48 +0000 (11:54 +0100)
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>
drivers/mmc/core/sd.c
drivers/mmc/core/sd.h
drivers/mmc/core/sdio.c

index 6f054c449d467537f3d52338510ef81eaecf86a9..6fa51a6ed0585611957415f2a2e503156c8a16a9 100644 (file)
@@ -860,7 +860,7 @@ try_again:
        return err;
 }
 
-int mmc_sd_get_csd(struct mmc_host *host, struct mmc_card *card)
+int mmc_sd_get_csd(struct mmc_card *card)
 {
        int err;
 
@@ -1046,7 +1046,7 @@ retry:
        }
 
        if (!oldcard) {
-               err = mmc_sd_get_csd(host, card);
+               err = mmc_sd_get_csd(card);
                if (err)
                        goto free_card;
 
index 497c026a5c5a4443e176347d8e552db6f5d4832f..1af5a038bae970db02f5ccec3a553e1a03ff3b2b 100644 (file)
@@ -10,7 +10,7 @@ struct mmc_host;
 struct mmc_card;
 
 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr);
-int mmc_sd_get_csd(struct mmc_host *host, struct mmc_card *card);
+int mmc_sd_get_csd(struct mmc_card *card);
 void mmc_decode_cid(struct mmc_card *card);
 int mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card,
        bool reinit);
index 694a212cbe25ab307bf9e1af966ffd31f498fb65..0fda7784cab20c6794067a4200c468b66be3da90 100644 (file)
@@ -751,7 +751,7 @@ try_again:
         * Read CSD, before selecting the card
         */
        if (!oldcard && card->type == MMC_TYPE_SD_COMBO) {
-               err = mmc_sd_get_csd(host, card);
+               err = mmc_sd_get_csd(card);
                if (err)
                        goto remove;