Skip to content

Commit 656ae4f

Browse files
ruanjinjie-enggregkh
authored andcommitted
staging: fieldbus: arcx-anybus: Remove redundant of_match_ptr()
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>
1 parent 6a889dc commit 656ae4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/staging/fieldbus/anybuss/arcx-anybus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ static struct platform_driver controller_driver = {
343343
.remove_new = controller_remove,
344344
.driver = {
345345
.name = "arcx-anybus-controller",
346-
.of_match_table = of_match_ptr(controller_of_match),
346+
.of_match_table = controller_of_match,
347347
},
348348
};
349349

0 commit comments

Comments
 (0)