[PATCH] fix PPC64 iSeries virtual console devices

From: Stephen Rothwell
Date: Thu Mar 11 2004 - 00:37:42 EST


Hi Linus,

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!

The following patch fixes this.

--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/

diff -ruN 2.6.4/drivers/char/viocons.c 2.6.4.viocons/drivers/char/viocons.c
--- 2.6.4/drivers/char/viocons.c 2004-03-11 15:39:16.000000000 +1100
+++ 2.6.4.viocons/drivers/char/viocons.c 2004-03-11 16:06:46.000000000 +1100
@@ -1365,6 +1365,7 @@
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;

Attachment: pgp00000.pgp
Description: PGP signature