Skip to content

Commit

Permalink
clk: imx93: drop of_match_ptr
Browse files Browse the repository at this point in the history
There is build warning when CONFIG_OF is not selected.
>> drivers/clk/imx/clk-imx93.c:324:34: warning: 'imx93_clk_of_match'
>> defined but not used [-Wunused-const-variable=]
     324 | static const struct of_device_id imx93_clk_of_match[] = {
         |                                  ^~~~~~~~~~~~~~~~~~

The driver only support DT table, no sense to use of_match_ptr.

Fixes: 24defbe ("clk: imx: add i.MX93 clk")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Abel Vesa <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
  • Loading branch information
MrVan authored and bebarino committed Sep 29, 2022
1 parent 1b24a13 commit daaa2fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/imx/clk-imx93.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ static struct platform_driver imx93_clk_driver = {
.driver = {
.name = "imx93-ccm",
.suppress_bind_attrs = true,
.of_match_table = of_match_ptr(imx93_clk_of_match),
.of_match_table = imx93_clk_of_match,
},
};
module_platform_driver(imx93_clk_driver);
Expand Down

0 comments on commit daaa2fb

Please sign in to comment.