aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/patches-5.15/211-v5.16-clk-mediatek-Add-API-for-clock-resource-recycle.patch
diff options
context:
space:
mode:
authorNick Hainke <vincent@systemli.org>2022-11-03 11:41:44 +0100
committerDaniel Golle <daniel@makrotopia.org>2022-11-05 14:07:46 +0000
commit0c8d84a642f10d117d9df5a2f275177f5715238e (patch)
tree41f1e690791436e250b7703959dc6bdde41d5fe8 /target/linux/mediatek/patches-5.15/211-v5.16-clk-mediatek-Add-API-for-clock-resource-recycle.patch
parente8080ce89b8945a512e57f663e797f3c922b60e4 (diff)
downloadupstream-0c8d84a642f10d117d9df5a2f275177f5715238e.tar.gz
upstream-0c8d84a642f10d117d9df5a2f275177f5715238e.tar.bz2
upstream-0c8d84a642f10d117d9df5a2f275177f5715238e.zip
mediatek: add tag for upstreamed patches
The patches were upstreamed. Signed-off-by: Nick Hainke <vincent@systemli.org>
Diffstat (limited to 'target/linux/mediatek/patches-5.15/211-v5.16-clk-mediatek-Add-API-for-clock-resource-recycle.patch')
-rw-r--r--target/linux/mediatek/patches-5.15/211-v5.16-clk-mediatek-Add-API-for-clock-resource-recycle.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/target/linux/mediatek/patches-5.15/211-v5.16-clk-mediatek-Add-API-for-clock-resource-recycle.patch b/target/linux/mediatek/patches-5.15/211-v5.16-clk-mediatek-Add-API-for-clock-resource-recycle.patch
new file mode 100644
index 0000000000..15de8aa3d4
--- /dev/null
+++ b/target/linux/mediatek/patches-5.15/211-v5.16-clk-mediatek-Add-API-for-clock-resource-recycle.patch
@@ -0,0 +1,28 @@
+--- 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)