]> git.hungrycats.org Git - linux/commitdiff
[PATCH] switch ide-floppy to ide_execute_command
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Thu, 6 Mar 2003 09:43:42 +0000 (01:43 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 6 Mar 2003 09:43:42 +0000 (01:43 -0800)
drivers/ide/ide-floppy.c

index b421020dec7aa7bb39a3246707a0e0da5c2eda65..b0b7825e9b3e921fe60310586889d199f5b2a885 100644 (file)
@@ -1077,14 +1077,11 @@ static ide_startstop_t idefloppy_issue_pc (ide_drive_t *drive, idefloppy_pc_t *p
        }
        
        if (test_bit (IDEFLOPPY_DRQ_INTERRUPT, &floppy->flags)) {
-               if (HWGROUP(drive)->handler != NULL)
-                       BUG();
-               ide_set_handler(drive,
+               /* Issue the packet command */
+               ide_execute_command(drive, WIN_PACKETCMD,
                                pkt_xfer_routine,
                                IDEFLOPPY_WAIT_CMD,
                                NULL);
-               /* Issue the packet command */
-               HWIF(drive)->OUTB(WIN_PACKETCMD, IDE_COMMAND_REG);
                return ide_started;
        } else {
                /* Issue the packet command */