]> git.baikalelectronics.ru Git - kernel.git/commit
serial: samsung: Move uart_register_driver call to device probe
authorTushar Behera <tushar.behera@linaro.org>
Mon, 20 Jan 2014 09:02:34 +0000 (14:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 18:32:59 +0000 (10:32 -0800)
commit8a75680e446eed5aebadc0fad7b44ae275b03d9d
tree439f3e7028180b1583cea393cc996cb4c5a42c28
parent0d3f292623f66ee01d28e74943f9bd8c0c259f51
serial: samsung: 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 same default major/minor numbers are
included in the kernel.

A typical case is observed with amba-pl011 and samsung-uart drivers.

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung.c