提交 9539c1d4 编写于 作者: V V. ANANDA KRISHNAN 提交者: Linus Torvalds

[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: NV. Ananda Krishnan <mansarov@us.ibm.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 49f29915
......@@ -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,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册