]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250_dw: get index of serial line from DT aliases
authorJulien CHAUVEAU <julien.chauveau@neo-technologies.fr>
Tue, 4 Nov 2014 10:45:55 +0000 (11:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 22:57:26 +0000 (14:57 -0800)
commit38558871cd3e3bdaf7c11003895bca5860dd915c
tree5b99bdff6bb16f6a9275a1cb513492a1d2eed574
parent5f90a7a55c518ed14a6e6b58caf865c92f203294
serial: 8250_dw: get index of serial line from DT aliases

Get index of serial line from device tree using function of_alias_get_id().
If no alias is found, the 8250 core takes care of incrementing the line number.

Signed-off-by: Julien CHAUVEAU <julien.chauveau@neo-technologies.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c