]> 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)
commitd922d3b8bc20d583c7cde855ed5adfd0ea67162b
tree715ec5bb79dbbf042ca797268478a0b768281b4b
parenta4d51811685bec58fedf33bef44b2b58d016c6d7
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: fea26fe7f00a ("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