mmc: mtk-sd: Remove unused parameters(mrq)
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>
This commit is contained in:
parent
43e5fee317
commit
961e40f714
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue