Skip to content

Commit

Permalink
[PATCH] jsm: use dynamic major number allocation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
V. ANANDA KRISHNAN authored and Linus Torvalds committed Jul 27, 2005
1 parent 49f2991 commit 9539c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/jsm/jsm_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 9539c1d

Please sign in to comment.