From: Bartlomiej Zolnierkiewicz Date: Sat, 2 Feb 2008 18:56:44 +0000 (+0100) Subject: trm290: use ide_execute_command() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c78d717210619c4312f791fb1da4dc1985630785;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git trm290: use ide_execute_command() Acked-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/pci/trm290.c b/drivers/ide/pci/trm290.c index e3d58c9f05e0..de750f7a43e9 100644 --- a/drivers/ide/pci/trm290.c +++ b/drivers/ide/pci/trm290.c @@ -177,10 +177,7 @@ static void trm290_selectproc (ide_drive_t *drive) static void trm290_dma_exec_cmd(ide_drive_t *drive, u8 command) { - BUG_ON(HWGROUP(drive)->handler != NULL); /* paranoia check */ - ide_set_handler(drive, &ide_dma_intr, WAIT_CMD, NULL); - /* issue cmd to drive */ - outb(command, IDE_COMMAND_REG); + ide_execute_command(drive, command, &ide_dma_intr, WAIT_CMD, NULL); } static int trm290_dma_setup(ide_drive_t *drive)