The QEMU ppce500 machine generates device tree nodes with "ns16550"
as the compatible string rather than "ns16550a".

Add it to the match table so the driver binds automatically on
QEMU platforms.

Signed-off-by: Ahmad Fatoum <[email protected]>
---
 drivers/serial/serial_ns16550.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c
index 1d0ee7dc08f8..61e294a38c4c 100644
--- a/drivers/serial/serial_ns16550.c
+++ b/drivers/serial/serial_ns16550.c
@@ -583,6 +583,8 @@ static struct of_device_id ns16550_serial_dt_ids[] = {
        {
                .compatible = "ns16450",
                .data = &ns16450_drvdata,
+       }, {
+               .compatible = "ns16550",
        }, {
                .compatible = "ns16550a",
        }, {
-- 
2.47.3


Reply via email to