From: David S. Miller Date: Mon, 13 Oct 2008 09:45:26 +0000 (+0100) Subject: serial: fix device name reporting when minor space is shared between drivers X-Git-Tag: v2.6.28-rc1~616 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8440838bc5337243917f13bc14ea2445da5e0197;p=pandora-kernel.git 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 Signed-off-by: Andrew Morton Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed