David S. Miller 8440838bc5 serial: fix device name reporting when minor space is shared between drivers
The multiple drivers share the minor space occupied by a particular major
number, the actual index within the device name's space is indicated by
the tty_driver->name_base + uart_port->line

Another usable formula is (uart_driver->minor - MINOR_BASE) + port->line

Use those to print the device names properly in such situations in
serial_core.c and 8250.c

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-10-13 09:51:44 -07:00
..
2008-07-20 17:12:35 -07:00
2008-02-08 09:22:25 -08:00
2008-02-08 09:22:25 -08:00
2008-10-13 09:51:44 -07:00
2008-08-04 17:12:07 -07:00
2008-02-03 14:47:38 +02:00
2008-10-13 09:51:40 -07:00
2008-04-30 08:29:47 -07:00
2006-12-08 08:28:57 -08:00
2008-07-28 18:10:29 +09:00
2007-07-18 08:38:22 -07:00