Message ID | 20230809085541.2969654-1-ruanjinjie@huawei.com |
---|---|
State | New |
Headers | show |
Series | [-next] serial: sifive: Remove redundant of_match_ptr() | expand |
diff --git a/drivers/tty/serial/sifive.c b/drivers/tty/serial/sifive.c index 3ac9fbd0226e..e2efc3f84eff 100644 --- a/drivers/tty/serial/sifive.c +++ b/drivers/tty/serial/sifive.c @@ -1031,7 +1031,7 @@ static struct platform_driver sifive_serial_platform_driver = { .remove = sifive_serial_remove, .driver = { .name = SIFIVE_SERIAL_NAME, - .of_match_table = of_match_ptr(sifive_serial_of_match), + .of_match_table = sifive_serial_of_match, }, };
The driver depends on CONFIG_OF, it is not necessary to use of_match_ptr() here. Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> --- drivers/tty/serial/sifive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)