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)
commit3bc3206e1c0f3f8891b544df02caae0e6d844f7d
tree549a2c6a6785b8a9a52f2f0457c15478ee3d84e7
parent4e1a606d552de03aec2b1fd157011bf012fcc870
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