trm290: use ide_execute_command()

Acked-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 2d6027f0
...@@ -177,10 +177,7 @@ static void trm290_selectproc (ide_drive_t *drive) ...@@ -177,10 +177,7 @@ static void trm290_selectproc (ide_drive_t *drive)
static void trm290_dma_exec_cmd(ide_drive_t *drive, u8 command) static void trm290_dma_exec_cmd(ide_drive_t *drive, u8 command)
{ {
BUG_ON(HWGROUP(drive)->handler != NULL); /* paranoia check */ ide_execute_command(drive, command, &ide_dma_intr, WAIT_CMD, NULL);
ide_set_handler(drive, &ide_dma_intr, WAIT_CMD, NULL);
/* issue cmd to drive */
outb(command, IDE_COMMAND_REG);
} }
static int trm290_dma_setup(ide_drive_t *drive) static int trm290_dma_setup(ide_drive_t *drive)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment