xen/char: dt-uart: Allow the user to give a path to the node
authorJulien Grall <julien.grall@linaro.org>
Wed, 28 Aug 2013 14:47:15 +0000 (15:47 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 6 Sep 2013 13:08:28 +0000 (14:08 +0100)
commite008e9119d03852020b93e1d4da9a80ec1af9c75
tree6e73ffe2a454d03b84896e6cfa7daa597608b1ea
parent5f2875739beef3a75c7a7e8579b6cbcb464e61b3
xen/char: dt-uart: Allow the user to give a path to the node

On some board, there is no alias to the UART. To avoid modification in
the device tree, dt-uart should also search device by path.

To distinguish an alias from a path, dt-uart will check the first character.
If it's a / then it's path, otherwise it's an alias.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/drivers/char/dt-uart.c