From 244b2c5ca8b14627e4a17755e5922221e121c771 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 09 Oct 2024 06:15:07 +0000
Subject: [PATCH] change system file
---
kernel/drivers/clk/rockchip/clk.h | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/kernel/drivers/clk/rockchip/clk.h b/kernel/drivers/clk/rockchip/clk.h
index d0212c5..ed525eb 100644
--- a/kernel/drivers/clk/rockchip/clk.h
+++ b/kernel/drivers/clk/rockchip/clk.h
@@ -498,6 +498,7 @@
* @clk_data: holds clock related data like clk* and number of clocks.
* @cru_node: device-node of the clock-provider
* @grf: regmap of the general-register-files syscon
+ * @list_node: node in the global ctx list
* @lock: maintains exclusion between callbacks for a given clock-provider.
*/
struct rockchip_clk_provider {
@@ -506,6 +507,7 @@
struct device_node *cru_node;
struct regmap *grf;
struct regmap *pmugrf;
+ struct hlist_node list_node;
spinlock_t lock;
};
@@ -1313,6 +1315,7 @@
int rockchip_clk_protect(struct rockchip_clk_provider *ctx,
unsigned int *clocks, unsigned int nclocks);
void rockchip_clk_unprotect(void);
+void rockchip_clk_disable_unused(void);
#else
static inline int rockchip_clk_protect(struct rockchip_clk_provider *ctx,
unsigned int *clocks,
@@ -1324,5 +1327,9 @@
static inline void rockchip_clk_unprotect(void)
{
}
+
+static inline void rockchip_clk_disable_unused(void)
+{
+}
#endif
#endif
--
Gitblit v1.6.2