[PATCH] Bad format of driver name for HVC console

olof at austin.ibm.com olof at austin.ibm.com
Sat Jun 28 04:30:57 EST 2003


The below patch fixes a formatting problem with the name of the HVC
console. If devfs is not configured, /proc/devices will contain "hvc/%d"
instead of "hvc".

Patch is against 2.4.21.


Thanks,

-Olof

Olof Johansson                                        Office: 4E002/905
pSeries Linux Development                             IBM Systems Group
Email: olof at austin.ibm.com                          Phone: 512-838-9858
All opinions are my own and not those of IBM




Index: drivers/char/hvc_console.c
===================================================================
RCS file: /cvs/linuxppc64/linuxppc64_2_4/drivers/char/hvc_console.c,v
retrieving revision 1.12
diff -p -u -r1.12 hvc_console.c
--- drivers/char/hvc_console.c	19 Aug 2002 14:15:52 -0000	1.12
+++ drivers/char/hvc_console.c	26 Jun 2003 19:41:56 -0000
@@ -252,7 +252,11 @@ int __init hvc_init(void)

 	hvc_driver.magic = TTY_DRIVER_MAGIC;
 	hvc_driver.driver_name = "hvc";
+#ifdef CONFIG_DEVFS_FS
 	hvc_driver.name = "hvc/%d";
+#else
+	hvc_driver.name = "hvc";
+#endif
 	hvc_driver.major = HVC_MAJOR;
 	hvc_driver.minor_start = HVC_MINOR;
 	hvc_driver.num = hvc_count(&hvc_offset);


** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/




More information about the Linuxppc64-dev mailing list