summaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorV. ANANDA KRISHNAN <mansarov@us.ibm.com>2005-07-27 11:43:48 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-27 16:25:52 -0700
commit9539c1d495c8d92837e7b6382a1219ac275b94b2 (patch)
treeb0371e81e678b391555ce2bfb118a0a3e5530bc8 /drivers/serial
parent49f29915856435ad8e34a4a3a907b09682a5826e (diff)
downloadlinux-9539c1d495c8d92837e7b6382a1219ac275b94b2.tar.gz
linux-9539c1d495c8d92837e7b6382a1219ac275b94b2.tar.bz2
linux-9539c1d495c8d92837e7b6382a1219ac275b94b2.zip
[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 = {
.owner = THIS_MODULE,
.driver_name = JSM_DRIVER_NAME,
.dev_name = "ttyn",
- .major = 253,
+ .major = 0,
.minor = JSM_MINOR_START,
.nr = NR_PORTS,
};