aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorV. ANANDA KRISHNAN <mansarov@us.ibm.com>2005-07-27 14:43:48 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-27 19:25:52 -0400
commit9539c1d495c8d92837e7b6382a1219ac275b94b2 (patch)
treeb0371e81e678b391555ce2bfb118a0a3e5530bc8 /drivers/serial
parent49f29915856435ad8e34a4a3a907b09682a5826e (diff)
[PATCH] jsm: use dynamic major number allocation
The jsm driver uses a static number of 253. The major number 253 is a reserved for "LOCAL/EXPERIMENTAL USE" by both char and block devices. So take advantage of the dynamic allocation of major number by the kernel. Signed-off-by: V. Ananda Krishnan <mansarov@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/jsm/jsm_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/jsm/jsm_driver.c b/drivers/serial/jsm/jsm_driver.c
index cc5d21300ed3..963ebaa37fb1 100644
--- a/drivers/serial/jsm/jsm_driver.c
+++ b/drivers/serial/jsm/jsm_driver.c
@@ -42,7 +42,7 @@ struct uart_driver jsm_uart_driver = {
42 .owner = THIS_MODULE, 42 .owner = THIS_MODULE,
43 .driver_name = JSM_DRIVER_NAME, 43 .driver_name = JSM_DRIVER_NAME,
44 .dev_name = "ttyn", 44 .dev_name = "ttyn",
45 .major = 253, 45 .major = 0,
46 .minor = JSM_MINOR_START, 46 .minor = JSM_MINOR_START,
47 .nr = NR_PORTS, 47 .nr = NR_PORTS,
48}; 48};