]> git.baikalelectronics.ru Git - kernel.git/commit
serial: uartps: Use the same dynamic major number for all ports
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Wed, 12 Jun 2019 11:14:38 +0000 (13:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jun 2019 07:34:27 +0000 (09:34 +0200)
commit4bfb800d15996a136d64bb606543b7498f6dc5fb
tree715ec5bb79dbbf042ca797268478a0b768281b4b
parent09650c264dcbcc1023ca46a7171111e704cc8b0a
serial: uartps: Use the same dynamic major number for all ports

Let kernel to find out major number dynamically for the first device and
then reuse it for other instances.
This fixes the issue that each uart is registered with a
different major number.

After the patch:
crw-------    1 root     root      253,   0 Jun 10 08:31 /dev/ttyPS0
crw--w----    1 root     root      253,   1 Jan  1  1970 /dev/ttyPS1

Fixes: 73340fe366c5 ("serial: uartps: Register own uart console and driver structures")
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c