]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit91d1ed1a6d225e3cf4bd8ede6235b1be65f7651a
tree38df1d1daebf331969348ac280f5b9add80b2adb
parenta23c3a86e9952a8badb49a6bb1de455c1f5bad6d
[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