Skip to content

Commit bd7342f

Browse files
Yue Hustorulf
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 37af07d commit bd7342f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

drivers/mmc/core/sd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr)
860860
return err;
861861
}
862862

863-
int mmc_sd_get_csd(struct mmc_host *host, struct mmc_card *card)
863+
int mmc_sd_get_csd(struct mmc_card *card)
864864
{
865865
int err;
866866

@@ -1046,7 +1046,7 @@ static int mmc_sd_init_card(struct mmc_host *host, u32 ocr,
10461046
}
10471047

10481048
if (!oldcard) {
1049-
err = mmc_sd_get_csd(host, card);
1049+
err = mmc_sd_get_csd(card);
10501050
if (err)
10511051
goto free_card;
10521052

drivers/mmc/core/sd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ struct mmc_host;
1010
struct mmc_card;
1111

1212
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);
1414
void mmc_decode_cid(struct mmc_card *card);
1515
int mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card,
1616
bool reinit);

drivers/mmc/core/sdio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr,
751751
* Read CSD, before selecting the card
752752
*/
753753
if (!oldcard && card->type == MMC_TYPE_SD_COMBO) {
754-
err = mmc_sd_get_csd(host, card);
754+
err = mmc_sd_get_csd(card);
755755
if (err)
756756
goto remove;
757757

0 commit comments

Comments
 (0)