Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c78d7172 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

trm290: use ide_execute_command()

parent 2d6027f0
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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)