From: V. ANANDA KRISHNAN Date: Wed, 27 Jul 2005 18:43:48 +0000 (-0700) Subject: [PATCH] jsm: use dynamic major number allocation X-Git-Tag: v2.6.13-rc4~25^2~143 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9539c1d495c8d92837e7b6382a1219ac275b94b2;p=platform%2Fkernel%2Flinux-stable.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/serial/jsm/jsm_driver.c b/drivers/serial/jsm/jsm_driver.c index cc5d213..963ebaa 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, };