staging: fieldbus: arcx-anybus: Remove redundant of_match_ptr()
authorRuan Jinjie <ruanjinjie@huawei.com>
Fri, 11 Aug 2023 02:49:44 +0000 (10:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2023 21:28:04 +0000 (23:28 +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/20230811024945.2256437-2-ruanjinjie@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fieldbus/anybuss/arcx-anybus.c

index be28165b4f05dd9d7bada04d772478f4c5ae6e61..6f69758a8b271357f8260694d5225588156905be 100644 (file)
@@ -343,7 +343,7 @@ static struct platform_driver controller_driver = {
        .remove_new = controller_remove,
        .driver         = {
                .name   = "arcx-anybus-controller",
-               .of_match_table = of_match_ptr(controller_of_match),
+               .of_match_table = controller_of_match,
        },
 };