ide-cris: use ide_execute_command()

Acked-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
上级 c78d7172
...@@ -1034,11 +1034,7 @@ static int cris_dma_setup(ide_drive_t *drive) ...@@ -1034,11 +1034,7 @@ static int cris_dma_setup(ide_drive_t *drive)
static void cris_dma_exec_cmd(ide_drive_t *drive, u8 command) static void cris_dma_exec_cmd(ide_drive_t *drive, u8 command)
{ {
/* set the irq handler which will finish the request when DMA is done */ ide_execute_command(drive, command, &cris_dma_intr, WAIT_CMD, NULL);
ide_set_handler(drive, &cris_dma_intr, WAIT_CMD, NULL);
/* issue cmd to drive */
cris_ide_outb(command, IDE_COMMAND_REG);
} }
static void cris_dma_start(ide_drive_t *drive) static void cris_dma_start(ide_drive_t *drive)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册