]> git.baikalelectronics.ru Git - kernel.git/commit
serial: fsl_lpuart: Remove the alias node dependence
authorVabhav Sharma <vabhav.sharma@nxp.com>
Tue, 9 Oct 2018 22:26:16 +0000 (03:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Oct 2018 11:16:48 +0000 (13:16 +0200)
commit1a40f6821f1e9946b9b393fa5cc7c2c53b43a117
tree549a2c6a6785b8a9a52f2f0457c15478ee3d84e7
parent1e70a414946a7d3cd59118aad929f16e57815b8b
serial: fsl_lpuart: Remove the alias node dependence

Numbering the ttyLPn space should not depend on the generic name
"serial<n>".

If don't add the alias node like:"serial0 = &lpuart0;", then lpuart
will probe failed:
[    0.773410] fsl-lpuart 2950000.serial: failed to get alias id, errno -19

So remove the alias node dependence, and add the support for allocate the
line port automatically.

Signed-off-by: Yuan Yao <yao.yuan@nxp.com>
Signed-off-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c