From c580d1f98e220e73e55fe4ce1c6e686f76102550 Mon Sep 17 00:00:00 2001 From: Bhanusree Pola Date: Sun, 17 Mar 2019 16:31:34 +0530 Subject: [PATCH] staging: mt7621-mmc: Modify the return type of the function msdc_do_command Modify the return type of the function msdc_do_command to static int as the member error of the structure struct mmc_command is of type int. Signed-off-by: Bhanusree Pola Signed-off-by: Greg Kroah-Hartman --- drivers/staging/mt7621-mmc/sd.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/mt7621-mmc/sd.c b/drivers/staging/mt7621-mmc/sd.c index 8857cdb9dafd..049b312131a9 100644 --- a/drivers/staging/mt7621-mmc/sd.c +++ b/drivers/staging/mt7621-mmc/sd.c @@ -168,10 +168,10 @@ static u32 hclks[] = {50000000}; /* +/- by chhung */ #define PHYSADDR(a) ((a) & 0x1fffffff) #endif /* end of +++ */ -static unsigned int msdc_do_command(struct msdc_host *host, - struct mmc_command *cmd, - int tune, - unsigned long timeout); +static int msdc_do_command(struct msdc_host *host, + struct mmc_command *cmd, + int tune, + unsigned long timeout); static int msdc_tune_cmdrsp(struct msdc_host *host, struct mmc_command *cmd); @@ -535,10 +535,10 @@ static unsigned int msdc_command_resp(struct msdc_host *host, return cmd->error; } -static unsigned int msdc_do_command(struct msdc_host *host, - struct mmc_command *cmd, - int tune, - unsigned long timeout) +static int msdc_do_command(struct msdc_host *host, + struct mmc_command *cmd, + int tune, + unsigned long timeout) { if (msdc_command_start(host, cmd, timeout)) goto end; -- 2.45.2