]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
serial: uartps: Move register to probe based on run time detection
authorMichal Simek <michal.simek@xilinx.com>
Mon, 3 Sep 2018 13:10:54 +0000 (15:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Sep 2018 14:07:22 +0000 (16:07 +0200)
commite4bbb5194ea3bc77ab843fe01c9f243cf8c6c6b2
tree6b8a0f0e3138d8dadbd795752744632eb116a3e3
parent14090ad1805f93418f69d2f661b6b9bb130b7824
serial: uartps: Move register to probe based on run time detection

Register uart driver in probe to be able to register one device with
unique major/minor separately. Also calculate number of instances of
this driver to be able to call uart_unregister_driver() when there is no
instance.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c