File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ static int clk_mt6735_apmixed_probe(struct platform_device *pdev)
88
88
if (IS_ERR (base ))
89
89
return PTR_ERR (base );
90
90
91
- clk_data = mtk_alloc_clk_data ( ARRAY_SIZE (apmixedsys_plls ));
91
+ clk_data = mtk_devm_alloc_clk_data ( & pdev -> dev , ARRAY_SIZE (apmixedsys_plls ));
92
92
if (!clk_data )
93
93
return - ENOMEM ;
94
94
platform_set_drvdata (pdev , clk_data );
@@ -114,7 +114,6 @@ static void clk_mt6735_apmixed_remove(struct platform_device *pdev)
114
114
struct clk_hw_onecell_data * clk_data = platform_get_drvdata (pdev );
115
115
116
116
mtk_clk_unregister_plls (apmixedsys_plls , ARRAY_SIZE (apmixedsys_plls ), clk_data );
117
- mtk_free_clk_data (clk_data );
118
117
}
119
118
120
119
static const struct of_device_id of_match_mt6735_apmixedsys [] = {
You can’t perform that action at this time.
0 commit comments