mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 09:39:00 +00:00
dabcaac443
It will be supported by the new filogic subtarget Signed-off-by: Sam Shih <sam.shih@mediatek.com> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
29 lines
742 B
Diff
29 lines
742 B
Diff
--- a/drivers/clk/mediatek/clk-mtk.c
|
|
+++ b/drivers/clk/mediatek/clk-mtk.c
|
|
@@ -43,6 +43,15 @@ err_out:
|
|
return NULL;
|
|
}
|
|
|
|
+void mtk_free_clk_data(struct clk_onecell_data *clk_data)
|
|
+{
|
|
+ if (!clk_data)
|
|
+ return;
|
|
+
|
|
+ kfree(clk_data->clks);
|
|
+ kfree(clk_data);
|
|
+}
|
|
+
|
|
void mtk_clk_register_fixed_clks(const struct mtk_fixed_clk *clks,
|
|
int num, struct clk_onecell_data *clk_data)
|
|
{
|
|
--- a/drivers/clk/mediatek/clk-mtk.h
|
|
+++ b/drivers/clk/mediatek/clk-mtk.h
|
|
@@ -202,6 +202,7 @@ void mtk_clk_register_dividers(const str
|
|
struct clk_onecell_data *clk_data);
|
|
|
|
struct clk_onecell_data *mtk_alloc_clk_data(unsigned int clk_num);
|
|
+void mtk_free_clk_data(struct clk_onecell_data *clk_data);
|
|
|
|
#define HAVE_RST_BAR BIT(0)
|
|
#define PLL_AO BIT(1)
|