From: Ulf Hansson Date: Tue, 14 Apr 2020 16:14:03 +0000 (+0200) Subject: mmc: sdricoh_cs: Use MMC_APP_CMD rather than a hardcoded number X-Git-Tag: baikal/aarch64/sdk6.1~9247^2~80 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=5ef34358255bd6eaa74659a467b5bfd15a7fac33;p=kernel.git mmc: sdricoh_cs: Use MMC_APP_CMD rather than a hardcoded number Cc: Sascha Sommer Signed-off-by: Ulf Hansson Link: https://lore.kernel.org/r/20200414161413.3036-10-ulf.hansson@linaro.org --- diff --git a/drivers/mmc/host/sdricoh_cs.c b/drivers/mmc/host/sdricoh_cs.c index 1fc4db713ef56..a41c0660abbf8 100644 --- a/drivers/mmc/host/sdricoh_cs.c +++ b/drivers/mmc/host/sdricoh_cs.c @@ -22,6 +22,7 @@ #include #include +#include #define DRIVER_NAME "sdricoh_cs" @@ -261,7 +262,7 @@ static void sdricoh_request(struct mmc_host *mmc, struct mmc_request *mrq) if (host->app_cmd) { opcode |= 64; host->app_cmd = 0; - } else if (opcode == 55) + } else if (opcode == MMC_APP_CMD) host->app_cmd = 1; /* read/write commands seem to require this */