Skip to content

Commit a4c14f5

Browse files
glneonmenon
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Nishanth Menon <[email protected]>
1 parent a7a1575 commit a4c14f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/firmware/ti_sci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3905,7 +3905,7 @@ static struct platform_driver ti_sci_driver = {
39053905
.probe = ti_sci_probe,
39063906
.driver = {
39073907
.name = "ti-sci",
3908-
.of_match_table = of_match_ptr(ti_sci_of_match),
3908+
.of_match_table = ti_sci_of_match,
39093909
.suppress_bind_attrs = true,
39103910
.pm = &ti_sci_pm_ops,
39113911
},

0 commit comments

Comments
 (0)