From 6d4289d1b43efc7c54289c142815008677377acb Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 16 Oct 2003 17:37:22 -0700 Subject: [PATCH] [PATCH] fix ide-floppy IOMEGA logic 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index 55cef4b31d1c..a3356b4db9cb 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c @@ -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; -- 2.39.5