serial: sh-sci: Move uart_register_driver call to device probe
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Thu, 20 Apr 2017 12:13:01 +0000 (14:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 May 2017 14:19:16 +0000 (16:19 +0200)
commit352b92664549e9dcdded742424a96aac9a0dbb40
tree2a84b555104bd9fcdf3f832233f5539686def84b
parentbd8766b158fb5def7633df1b2d2ec78a48941035
serial: sh-sci: Move uart_register_driver call to device probe

uart_register_driver call binds the driver to a specific device
node through tty_register_driver call. This should typically
happen during device probe call.

In a multiplatform scenario, it is possible that multiple serial
drivers are part of the kernel. Currently the driver registration fails
if multiple serial drivers with overlapping major/minor numbers are
included.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c