serial: ns16550: Handle -ENOENT when requesting clock
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 30 Sep 2016 08:37:00 +0000 (17:37 +0900)
committerTom Rini <trini@konsulko.com>
Thu, 6 Oct 2016 14:31:59 +0000 (10:31 -0400)
commitab895d6af224a427db4ffb70884588a2449be1c6
tree0964db9464a8f880ac6227e688a547e63bb449ff
parent53fec162061811a73c7dab3207f8fdb2343ae289
serial: ns16550: Handle -ENOENT when requesting clock

When calling clk_get_by_index(), fall back to the legacy method of
getting the clock if -ENOENT is returned.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
drivers/serial/ns16550.c