Skip to content

Commit

Permalink
Add two missing chipsets to drivers/ide/ide-proc.c
Browse files Browse the repository at this point in the history
Compiling with '-Wswitch-enum' I noticed following:

  CC      drivers/ide/ide-proc.o
drivers/ide/ide-proc.c: In function �proc_ide_read_imodel�:
drivers/ide/ide-proc.c:54: warning: enumeration value �ide_etrax100� not handled in switch
drivers/ide/ide-proc.c:54: warning: enumeration value �ide_acorn� not handled in switch

How about the following patch?

Signed-off-by: Mika Kukkonen <mikukkon@iki.fi>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Mika Kukkonen authored and Bartlomiej Zolnierkiewicz committed May 24, 2007
1 parent 2074a10 commit 39c98c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/ide/ide-proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ static int proc_ide_read_imodel
case ide_4drives: name = "4drives"; break;
case ide_pmac: name = "mac-io"; break;
case ide_au1xxx: name = "au1xxx"; break;
case ide_etrax100: name = "etrax100"; break;
case ide_acorn: name = "acorn"; break;
default: name = "(unknown)"; break;
}
len = sprintf(page, "%s\n", name);
Expand Down

0 comments on commit 39c98c4

Please sign in to comment.