Skip to content

Commit ad55c5c

Browse files
glneoJassi Brar
authored andcommitted
mailbox: ti-msgmgr: Remove use of of_match_ptr() helper
When OF support is disabled the of_device_id struct match table can be conditionally compiled out, this helper allows the assignment to also be turned into a NULL conditionally. When the of_device_id struct is not conditionally defined based on OF then the table will be unused causing a warning. The two options are to either set the table as _maybe_unused, or to just remove this helper since the table will always be defined. Do the latter here. Signed-off-by: Andrew Davis <afd@ti.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Nishanth Menon <nm@ti.com> Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
1 parent bfa0e78 commit ad55c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mailbox/ti-msgmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ static struct platform_driver ti_msgmgr_driver = {
920920
.probe = ti_msgmgr_probe,
921921
.driver = {
922922
.name = "ti-msgmgr",
923-
.of_match_table = of_match_ptr(ti_msgmgr_of_match),
923+
.of_match_table = ti_msgmgr_of_match,
924924
.pm = &ti_msgmgr_pm_ops,
925925
},
926926
};

0 commit comments

Comments
 (0)