
From: Stephen Rothwell <sfr@canb.auug.org.au>

While playing with udev, I discovered that the virtual console devices on
iSeries had there minor numbers off by one i.e.  /dev/tty1 was minor 2!


---

 drivers/char/viocons.c |    1 +
 1 files changed, 1 insertion(+)

diff -puN drivers/char/viocons.c~ppc64-iseries-virtual-console-fix drivers/char/viocons.c
--- 25/drivers/char/viocons.c~ppc64-iseries-virtual-console-fix	2004-03-10 21:40:36.000000000 -0800
+++ 25-akpm/drivers/char/viocons.c	2004-03-10 21:40:36.000000000 -0800
@@ -1365,6 +1365,7 @@ static int __init viocons_init2(void)
 	viotty_driver->driver_name = "vioconsole";
 	viotty_driver->devfs_name = "vcs/";
 	viotty_driver->name = "tty";
+	viotty_driver->name_base = 1;
 	viotty_driver->major = TTY_MAJOR;
 	viotty_driver->minor_start = 1;
 	viotty_driver->type = TTY_DRIVER_TYPE_CONSOLE;

_
