diff options
author | Andrew Davis <afd@ti.com> | 2024-10-15 23:33:21 +0200 |
---|---|---|
committer | Jassi Brar <jassisinghbrar@gmail.com> | 2024-11-24 19:57:49 +0100 |
commit | ad55c5c00ff9aac1ee0e7f6ca1205bfa79789d0b (patch) | |
tree | 34191e0191955ec2b552de7b34e2e1489fcae555 | |
parent | mailbox: qcom-cpucp: Mark the irq with IRQF_NO_SUSPEND flag (diff) | |
download | linux-ad55c5c00ff9aac1ee0e7f6ca1205bfa79789d0b.tar.xz linux-ad55c5c00ff9aac1ee0e7f6ca1205bfa79789d0b.zip |
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>
-rw-r--r-- | drivers/mailbox/ti-msgmgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mailbox/ti-msgmgr.c b/drivers/mailbox/ti-msgmgr.c index 9d2d4ff6cda4..8eb8df8d95a4 100644 --- a/drivers/mailbox/ti-msgmgr.c +++ b/drivers/mailbox/ti-msgmgr.c @@ -920,7 +920,7 @@ static struct platform_driver ti_msgmgr_driver = { .probe = ti_msgmgr_probe, .driver = { .name = "ti-msgmgr", - .of_match_table = of_match_ptr(ti_msgmgr_of_match), + .of_match_table = ti_msgmgr_of_match, .pm = &ti_msgmgr_pm_ops, }, }; |