diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2020-04-14 18:14:03 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2020-05-28 11:21:01 +0200 |
commit | cfa2c1dc7bb43cf3d00f27ec90022f6fb8f0bf42 (patch) | |
tree | 6716504f9075ee7467c773b5d8ac733b732027e1 /drivers/mmc | |
parent | 710c7ff9a6815ca565b6acb08501ad18ca151429 (diff) | |
download | linux-stable-cfa2c1dc7bb43cf3d00f27ec90022f6fb8f0bf42.tar.gz linux-stable-cfa2c1dc7bb43cf3d00f27ec90022f6fb8f0bf42.tar.bz2 linux-stable-cfa2c1dc7bb43cf3d00f27ec90022f6fb8f0bf42.zip |
mmc: sdricoh_cs: Use MMC_APP_CMD rather than a hardcoded number
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
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdricoh_cs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdricoh_cs.c b/drivers/mmc/host/sdricoh_cs.c index 1fc4db713ef5..a41c0660abbf 100644 --- a/drivers/mmc/host/sdricoh_cs.c +++ b/drivers/mmc/host/sdricoh_cs.c @@ -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 */ |