mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 06:08:07 +00:00
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
This commit is contained in:
parent
710c7ff9a6
commit
cfa2c1dc7b
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
|
|
||||||
#include <linux/mmc/host.h>
|
#include <linux/mmc/host.h>
|
||||||
|
#include <linux/mmc/mmc.h>
|
||||||
|
|
||||||
#define DRIVER_NAME "sdricoh_cs"
|
#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) {
|
if (host->app_cmd) {
|
||||||
opcode |= 64;
|
opcode |= 64;
|
||||||
host->app_cmd = 0;
|
host->app_cmd = 0;
|
||||||
} else if (opcode == 55)
|
} else if (opcode == MMC_APP_CMD)
|
||||||
host->app_cmd = 1;
|
host->app_cmd = 1;
|
||||||
|
|
||||||
/* read/write commands seem to require this */
|
/* read/write commands seem to require this */
|
||||||
|
|
Loading…
Reference in a new issue