]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[SERIAL] sunsu: Report keyboard and mouse ports in kernel log.
authorDavid S. Miller <davem@sunset.davemloft.net>
Thu, 13 Jul 2006 23:05:57 +0000 (16:05 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sat, 15 Jul 2006 00:00:23 +0000 (17:00 -0700)
Otherwise there is no explicit mention of these devices.

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

index 93bdaa3169fcc1a17bd32bf905db7c1bfd877c15..d3a5aeee73a34b33bb4736b751a2aacab8ec5e8a 100644 (file)
@@ -1200,6 +1200,11 @@ static int __init sunsu_kbd_ms_init(struct uart_sunsu_port *up)
        if (up->port.type == PORT_UNKNOWN)
                return -ENODEV;
 
+       printk("%s: %s port at %lx, irq %u\n",
+              to_of_device(up->port.dev)->node->full_name,
+              (up->su_type == SU_PORT_KBD) ? "Keyboard" : "Mouse",
+              up->port.mapbase, up->port.irq);
+
 #ifdef CONFIG_SERIO
        serio = &up->serio;
        serio->port_data = up;