mmc: core: remove unused host parameter of mmc_sd_get_csd()
PATCH v2 1/1 mmc: core: remove unused host parameter of mmc_sd_get_csd()
From: Yue Hu <[email protected]>
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]>
---
v2: fix minor commit message.
drivers/mmc/core/sd.c | 4 ++-- drivers/mmc/core/sd.h | 2 +- drivers/mmc/core/sdio.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/mmc/core/sd.c +2 -2
@@ -860,7 +860,7 @@ int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr)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 @@ static int mmc_sd_init_card(struct mmc_host *host, u32 ocr, }if (!oldcard) { - err =mmc_sd_get_csd (host, card); + err =mmc_sd_get_csd (card);if (err) goto free_card;
drivers/mmc/core/sd.h +1 -1
@@ -10,7 +10,7 @@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);
drivers/mmc/core/sdio.c +1 -1
@@ -751,7 +751,7 @@ static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr,* 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;
Signature · 1 line
1.9.1
Quoted 7 lines · Yue Hu
From: Yue Hu <[email protected]>
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]>
Applied for next, thanks!
Kind regards
Uffe
Quoted 59 lines
---
v2: fix minor commit message.drivers/mmc/core/sd.c | 4 ++-- drivers/mmc/core/sd.h | 2 +- drivers/mmc/core/sdio.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)drivers/mmc/core/sd.c +2
-2@@ -860,7 +860,7 @@ int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr)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 @@ static int mmc_sd_init_card(struct mmc_host *host, u32 ocr, }if (!oldcard) { - err =mmc_sd_get_csd (host, card); + err =mmc_sd_get_csd (card);if (err) goto free_card;drivers/mmc/core/sd.h +1
-1@@ -10,7 +10,7 @@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);drivers/mmc/core/sdio.c +1
-2@@ -751,7 +751,7 @@ static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr,* 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; --1.9.1