]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
firmware: ti_sci: Remove use of of_match_ptr() helper
authorAndrew Davis <afd@ti.com>
Tue, 15 Oct 2024 21:33:20 +0000 (16:33 -0500)
committerNishanth Menon <nm@ti.com>
Fri, 25 Oct 2024 17:56:37 +0000 (12:56 -0500)
commita4c14f509509a6a24f25edb7619f55f204a8433f
treec9c73843918b1d648c7b8cc71b11752dea0ba86b
parenta7a15754c7f70a833ffeb9ad996b358924f10305
firmware: ti_sci: 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>
Link: https://lore.kernel.org/r/20241015213322.2649011-2-afd@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>
drivers/firmware/ti_sci.c