From: Bartlomiej Zolnierkiewicz Date: Sat, 2 Feb 2008 18:56:44 +0000 (+0100) Subject: ide-cris: use ide_execute_command() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b187dfeed3be2fc879e904ed0b01d490d8866760;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ide-cris: use ide_execute_command() Acked-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/cris/ide-cris.c b/drivers/ide/cris/ide-cris.c index ac645263fd09..00587a8c2ba1 100644 --- a/drivers/ide/cris/ide-cris.c +++ b/drivers/ide/cris/ide-cris.c @@ -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) { - /* set the irq handler which will finish the request when DMA is done */ - ide_set_handler(drive, &cris_dma_intr, WAIT_CMD, NULL); - - /* issue cmd to drive */ - cris_ide_outb(command, IDE_COMMAND_REG); + ide_execute_command(drive, command, &cris_dma_intr, WAIT_CMD, NULL); } static void cris_dma_start(ide_drive_t *drive)