Commit dc0215e7 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] use ide_execute_command for CD

This is the only user I'll feed you this time. As with 2.4 I want it to
run for a bit on read only media first 8)
parent f44deb99
......@@ -856,11 +856,8 @@ static ide_startstop_t cdrom_start_packet_command(ide_drive_t *drive,
HWIF(drive)->OUTB(drive->ctl, IDE_CONTROL_REG);
if (CDROM_CONFIG_FLAGS (drive)->drq_interrupt) {
if (HWGROUP(drive)->handler != NULL)
BUG();
ide_set_handler (drive, handler, WAIT_CMD, cdrom_timer_expiry);
/* packet command */
HWIF(drive)->OUTB(WIN_PACKETCMD, IDE_COMMAND_REG);
ide_execute_command(drive, WIN_PACKETCMD, handler, WAIT_CMD, cdrom_timer_expiry);
return ide_started;
} else {
/* packet command */
......
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