]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix ide-floppy IOMEGA logic
authorJens Axboe <axboe@suse.de>
Fri, 17 Oct 2003 00:37:22 +0000 (17:37 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Fri, 17 Oct 2003 00:37:22 +0000 (17:37 -0700)
The original change turned out to be too restrictive, it catches devices
that don't need the work around.

This fixes that, thanks to Bart for informing me of the screwup.

drivers/ide/ide-floppy.c

index 55cef4b31d1c4d7624f2d0f296d8021800b7a32f..a3356b4db9cbe48776a21ff116704fe063f6b252 100644 (file)
@@ -1796,7 +1796,7 @@ static void idefloppy_setup (ide_drive_t *drive, idefloppy_floppy_t *floppy)
         *      we'll leave the limitation below for the 2.2.x tree.
         */
 
-       if (strstr(drive->id->model, "IOMEGA ZIP") != NULL) {
+       if (!strncmp(drive->id->model, "IOMEGA ZIP 100 ATAPI", 20)) {
                set_bit(IDEFLOPPY_ZIP_DRIVE, &floppy->flags);
                /* This value will be visible in the /proc/ide/hdx/settings */
                floppy->ticks = IDEFLOPPY_TICKS_DELAY;