diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/host/tmio_mmc_pio.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c index 9a7996ade58e..0ad3917cafd1 100644 --- a/drivers/mmc/host/tmio_mmc_pio.c +++ b/drivers/mmc/host/tmio_mmc_pio.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <linux/mfd/tmio.h> | 36 | #include <linux/mfd/tmio.h> |
37 | #include <linux/mmc/cd-gpio.h> | 37 | #include <linux/mmc/cd-gpio.h> |
38 | #include <linux/mmc/host.h> | 38 | #include <linux/mmc/host.h> |
39 | #include <linux/mmc/mmc.h> | ||
39 | #include <linux/mmc/tmio.h> | 40 | #include <linux/mmc/tmio.h> |
40 | #include <linux/module.h> | 41 | #include <linux/module.h> |
41 | #include <linux/pagemap.h> | 42 | #include <linux/pagemap.h> |
@@ -305,8 +306,8 @@ static int tmio_mmc_start_command(struct tmio_mmc_host *host, struct mmc_command | |||
305 | int c = cmd->opcode; | 306 | int c = cmd->opcode; |
306 | u32 irq_mask = TMIO_MASK_CMD; | 307 | u32 irq_mask = TMIO_MASK_CMD; |
307 | 308 | ||
308 | /* Command 12 is handled by hardware */ | 309 | /* CMD12 is handled by hardware */ |
309 | if (cmd->opcode == 12 && !cmd->arg) { | 310 | if (cmd->opcode == MMC_STOP_TRANSMISSION && !cmd->arg) { |
310 | sd_ctrl_write16(host, CTL_STOP_INTERNAL_ACTION, 0x001); | 311 | sd_ctrl_write16(host, CTL_STOP_INTERNAL_ACTION, 0x001); |
311 | return 0; | 312 | return 0; |
312 | } | 313 | } |
@@ -449,7 +450,7 @@ void tmio_mmc_do_data_irq(struct tmio_mmc_host *host) | |||
449 | } | 450 | } |
450 | 451 | ||
451 | if (stop) { | 452 | if (stop) { |
452 | if (stop->opcode == 12 && !stop->arg) | 453 | if (stop->opcode == MMC_STOP_TRANSMISSION && !stop->arg) |
453 | sd_ctrl_write16(host, CTL_STOP_INTERNAL_ACTION, 0x000); | 454 | sd_ctrl_write16(host, CTL_STOP_INTERNAL_ACTION, 0x000); |
454 | else | 455 | else |
455 | BUG(); | 456 | BUG(); |