]> 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)
commitf266c62cc6f464d93ecdce26d0ac3a382c062fcc
tree549a2c6a6785b8a9a52f2f0457c15478ee3d84e7
parent432ef848a3d3f77369d7e017225d9dba9b9a2eb4
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