]> asedeno.scripts.mit.edu Git - linux.git/commit
tty: serial: meson: if no alias specified use an available id
authorLoys Ollivier <lollivier@baylibre.com>
Mon, 14 Jan 2019 16:54:26 +0000 (17:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2019 10:22:22 +0000 (11:22 +0100)
commita26988e8fef4b258d1b771e0f4b2e3b67cb2e044
treec1ad43eed819905b9956f7b6763ab12f6108223b
parent896efccfcc7ff9cca44baa916a55ddf323cc10d1
tty: serial: meson: if no alias specified use an available id

At probe, the uart driver tries to get an id from a device tree alias.
When no alias was specified, the driver would return an error and probing
would fail.

Providing an alias for registering a serial device should not be mandatory.
If the device tree does not specify an alias, provide an id from a reserved
range so that the probing can continue.

Suggested-by: Rob Herring <robh@kernel.org>
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/meson_uart.c