serial: sifive: Remove 0 from fu540-c000-uart0 binding.
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 7 Mar 2024 09:09:50 +0000 (10:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Apr 2024 13:48:46 +0000 (15:48 +0200)
The driver is using "sifive,fu540-c000-uart0" as a binding. The device
tree and documentation states "sifive,fu540-c000-uart" instead. This
means the binding is not matched and not used.

This did not cause any problems because the alternative binding, used in
the device tree, "sifive,uart0" is not handling the hardware any
different.

Align the binding in the driver with the documentation.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240307090950.eLELkuyK@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sifive.c

index 0670fd9f84967a151ebb2a3fbae6add7f918d003..cbfce65c9d221abb1dd589f40e4b6658867803c6 100644 (file)
@@ -761,7 +761,7 @@ static int __init early_sifive_serial_setup(struct earlycon_device *dev,
 }
 
 OF_EARLYCON_DECLARE(sifive, "sifive,uart0", early_sifive_serial_setup);
-OF_EARLYCON_DECLARE(sifive, "sifive,fu540-c000-uart0",
+OF_EARLYCON_DECLARE(sifive, "sifive,fu540-c000-uart",
                    early_sifive_serial_setup);
 #endif /* CONFIG_SERIAL_EARLYCON */
 
@@ -1032,7 +1032,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(sifive_uart_pm_ops, sifive_serial_suspend,
                                sifive_serial_resume);
 
 static const struct of_device_id sifive_serial_of_match[] = {
-       { .compatible = "sifive,fu540-c000-uart0" },
+       { .compatible = "sifive,fu540-c000-uart" },
        { .compatible = "sifive,uart0" },
        {},
 };