]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mailbox: ti-msgmgr: Remove use of of_match_ptr() helper
authorAndrew Davis <afd@ti.com>
Tue, 15 Oct 2024 21:33:21 +0000 (16:33 -0500)
committerJassi Brar <jassisinghbrar@gmail.com>
Sun, 24 Nov 2024 18:57:49 +0000 (12:57 -0600)
commitad55c5c00ff9aac1ee0e7f6ca1205bfa79789d0b
tree34191e0191955ec2b552de7b34e2e1489fcae555
parentbfa0e78da8ef59bac5db664bcf9b5662940d928d
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>
drivers/mailbox/ti-msgmgr.c