Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Jiri Slaby and committed by
Linus Torvalds
9efda797 2cfb8ce8

+1 -1
+1 -1
drivers/char/riscom8.c
··· 1709 1709 1710 1710 if (iobase || iobase1 || iobase2 || iobase3) { 1711 1711 for(i = 0; i < RC_NBOARD; i++) 1712 - rc_board[0].base = 0; 1712 + rc_board[i].base = 0; 1713 1713 } 1714 1714 1715 1715 if (iobase)