From: Jiri Slaby Date: Thu, 13 Mar 2008 19:32:39 +0000 (-0700) Subject: char: riscom, fix rc_board indexing X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9efda797d60adbbe77aaf33cda0dfee161ac712c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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)