[PATCH] serial: mvebu-uart: drop of_match_ptr for ID table

From: Bramuel Barack

Date: Sun Nov 15 2026 - 10:08:16 EST


mvebu_uart_of_match[] is always compiled in and already referenced
directly in mvebu_uart_probe(). Wrapping it in of_match_ptr() in
mvebu_uart_platform_driver is redundant and prevents ACPI PRP0001
matching when CONFIG_OF is disabled.

Drop of_match_ptr() to reference the table directly.

Signed-off-by: Bramuel Barack <bramwelbarack89@xxxxxxxxx>
---
drivers/tty/serial/mvebu-uart.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/mvebu-uart.c b/drivers/tty/serial/mvebu-uart.c
index 33ea496c93b2..8311e4c244f3 100644
--- a/drivers/tty/serial/mvebu-uart.c
+++ b/drivers/tty/serial/mvebu-uart.c
@@ -1016,7 +1016,7 @@ static struct platform_driver mvebu_uart_platform_driver = {
.probe = mvebu_uart_probe,
.driver = {
.name = "mvebu-uart",
- .of_match_table = of_match_ptr(mvebu_uart_of_match),
+ .of_match_table = mvebu_uart_of_match,
.suppress_bind_attrs = true,
#if defined(CONFIG_PM)
.pm = &mvebu_uart_pm_ops,
--
2.56.1