]> git.baikalelectronics.ru Git - kernel.git/commit
[SERIAL] sunsu: Handle keyboard and mouse ports directly.
authorDavid S. Miller <davem@sunset.davemloft.net>
Thu, 13 Jul 2006 04:04:21 +0000 (21:04 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 13 Jul 2006 08:50:11 +0000 (01:50 -0700)
commit6c716c4037a00a9d39467ff5b1a5bf38eac9cc0e
tree38df1d1daebf331969348ac280f5b9add80b2adb
parentaddaf3ca7d7e233daaba118720167a6a29764b27
[SERIAL] sunsu: Handle keyboard and mouse ports directly.

The sunsu_ports[] array exists merely to be able to easily
use an integer index to get at the proper serial console
port struct.

We size this only for real ports, not for the keyboard and
mouse, and thus keyboard and mouse port registration would
fail.

Fix this by dynamically allocating the port struct for the
keyboard and mouse, instead of using the sunsu_ports[]
array.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/serial/sunsu.c