2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-20 16:46:23 +08:00

[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>
This commit is contained in:
V. ANANDA KRISHNAN 2005-07-27 11:43:48 -07:00 committed by Linus Torvalds
parent 49f2991585
commit 9539c1d495

View File

@ -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,
};