drivers: PL011: refactor pl011_probe()
authorAndre Przywara <andre.przywara@arm.com>
Thu, 21 May 2015 16:26:18 +0000 (17:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 May 2015 20:08:51 +0000 (13:08 -0700)
commit3873e2d7f63a9da3098b28c405d13f15667a01b0
tree0f052abe653726b0124a3799a794676140b8f788
parentef5a9358844a2e6f466facaca3247b64c72ef417
drivers: PL011: refactor pl011_probe()

Currently the pl011_probe() function is relying on some AMBA IDs
and a device tree node to initialize the driver and a port.
Both features are not necessarily required for the driver:
- we lack AMBA IDs in the ARM SBSA generic UART and
- we lack a DT node in ACPI systems.
So lets refactor the function to ease later reuse.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Mark Langsdorf <mlangsdo@redhat.com>
Tested-by: Naresh Bhat <nbhat@cavium.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/amba-pl011.c