diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-03-13 12:32:39 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-03-13 13:11:43 -0700 |
commit | 9efda797d60adbbe77aaf33cda0dfee161ac712c (patch) | |
tree | c210375df8efc2ff2a7f4727c81dbb3a47077c98 /drivers | |
parent | 2cfb8ce8c87802181ade74f5dadb3dded9bb4c7e (diff) | |
download | talos-obmc-linux-9efda797d60adbbe77aaf33cda0dfee161ac712c.tar.gz talos-obmc-linux-9efda797d60adbbe77aaf33cda0dfee161ac712c.zip |
char: riscom, fix rc_board indexing
In riscom8_init_module, rc_board should be indexed by i, not by 0, otherwise
the loop is useless.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/riscom8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/riscom8.c b/drivers/char/riscom8.c index 589ac6f65b9a..3f9d0a9ac36d 100644 --- a/drivers/char/riscom8.c +++ b/drivers/char/riscom8.c @@ -1709,7 +1709,7 @@ static int __init riscom8_init_module (void) if (iobase || iobase1 || iobase2 || iobase3) { for(i = 0; i < RC_NBOARD; i++) - rc_board[0].base = 0; + rc_board[i].base = 0; } if (iobase) |