OSDN Git Service

mmc: mtk-sd: Remove unused parameters(mrq)
authorChanWoo Lee <cw9316.lee@samsung.com>
Fri, 27 Aug 2021 09:31:19 +0000 (18:31 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 12 Oct 2021 08:21:16 +0000 (10:21 +0200)
The mmc_request structure(*mrq) is not used. //msdc_cmd_find_resp
I remove the unnecessary code related to the mmc_request structure.

Signed-off-by: ChanWoo Lee <cw9316.lee@samsung.com>
Link: https://lore.kernel.org/r/20210827093119.32481-1-cw9316.lee@samsung.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mtk-sd.c

index b99330b..8d9bed9 100644 (file)
@@ -962,7 +962,7 @@ static void msdc_set_mclk(struct msdc_host *host, unsigned char timing, u32 hz)
 }
 
 static inline u32 msdc_cmd_find_resp(struct msdc_host *host,
-               struct mmc_request *mrq, struct mmc_command *cmd)
+               struct mmc_command *cmd)
 {
        u32 resp;
 
@@ -998,7 +998,7 @@ static inline u32 msdc_cmd_prepare_raw_cmd(struct msdc_host *host,
         * stop << 14 | rw << 13 | dtype << 11 | rsptyp << 7 | brk << 6 | opcode
         */
        u32 opcode = cmd->opcode;
-       u32 resp = msdc_cmd_find_resp(host, mrq, cmd);
+       u32 resp = msdc_cmd_find_resp(host, cmd);
        u32 rawcmd = (opcode & 0x3f) | ((resp & 0x7) << 7);
 
        host->cmd_rsp = resp;