]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix imm.c again
authorAndrew Morton <akpm@osdl.org>
Fri, 12 Sep 2003 05:23:44 +0000 (01:23 -0400)
committerAnton Blanchard <anton@samba.org>
Fri, 12 Sep 2003 05:23:44 +0000 (01:23 -0400)
From: Adrian Bunk <bunk@fs.tum.de>

Earlier patch wasn't correct especially in the !CONFIG_SCSI_IZIP_EPP16
case, reading all uses of this array (IMM_MODE_STRING is used to print the
corresponding string in printks).

If I'm not misunderstanding it, CONFIG_SCSI_IZIP_EPP16 means "use 16bit
even when 32bit is requested".

 drivers/scsi/imm.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

drivers/scsi/imm.h

index 4b5b28f965fd9aca4b55352702c8ed0f77dadb2f..800d38fc80cce46c3e5c31789597a4d33ffc28c8 100644 (file)
@@ -100,8 +100,9 @@ static char *IMM_MODE_STRING[] =
        [IMM_NIBBLE]     = "SPP",
        [IMM_PS2]        = "PS/2",
        [IMM_EPP_8]      = "EPP 8 bit",
-#ifdef CONFIG_SCSI_IZIP_EPP16
        [IMM_EPP_16]     = "EPP 16 bit",
+#ifdef CONFIG_SCSI_IZIP_EPP16
+       [IMM_EPP_32]     = "EPP 16 bit",
 #else
        [IMM_EPP_32]     = "EPP 32 bit",
 #endif