serial: sifive: Remove redundant of_match_ptr()
authorRuan Jinjie <ruanjinjie@huawei.com>
Wed, 9 Aug 2023 08:55:41 +0000 (16:55 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Aug 2023 12:15:25 +0000 (14:15 +0200)
The driver depends on CONFIG_OF, it is not necessary to use
of_match_ptr() here.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20230809085541.2969654-1-ruanjinjie@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sifive.c

index 3ac9fbd0226ec91ca998edb5e800fe9b137fdbbd..e2efc3f84eff0a22ccde5b611ef3f49dd4932a05 100644 (file)
@@ -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,
        },
 };