]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mmc: sdricoh_cs: Use MMC_APP_CMD rather than a hardcoded number
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 14 Apr 2020 16:14:03 +0000 (18:14 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:21:01 +0000 (11:21 +0200)
Cc: Sascha Sommer <saschasommer@freenet.de>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20200414161413.3036-10-ulf.hansson@linaro.org
drivers/mmc/host/sdricoh_cs.c

index 1fc4db713ef56eaf1c78775f9d6ff2126a656a9c..a41c0660abbf83124aba224b5fa4a9d238e2dd7e 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/io.h>
 
 #include <linux/mmc/host.h>
+#include <linux/mmc/mmc.h>
 
 #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 */