diff options
| author | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
| commit | 1ac731c529cd4d6adbce134754b51ff7d822b145 (patch) | |
| tree | 143ab3f35ca5f3b69f583c84e6964b17139c2ec1 /drivers/clk/clk.c | |
| parent | 07b4c950f27bef0362dc6ad7ee713aab61d58149 (diff) | |
| parent | 54116d442e001e1b6bd482122043b1870998a1f3 (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.6 merge window.
Diffstat (limited to 'drivers/clk/clk.c')
| -rw-r--r-- | drivers/clk/clk.c | 10 | 
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index ae07685c7588..27c30a533759 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -1406,6 +1406,8 @@ static int __init clk_disable_unused(void)  		return 0;  	} +	pr_info("clk: Disabling unused clocks\n"); +  	clk_prepare_lock();  	hlist_for_each_entry(core, &clk_root_list, child_node) @@ -3194,7 +3196,7 @@ static void clk_summary_show_subtree(struct seq_file *s, struct clk_core *c,  static int clk_summary_show(struct seq_file *s, void *data)  {  	struct clk_core *c; -	struct hlist_head **lists = (struct hlist_head **)s->private; +	struct hlist_head **lists = s->private;  	seq_puts(s, "                                 enable  prepare  protect                                duty  hardware\n");  	seq_puts(s, "   clock                          count    count    count        rate   accuracy phase  cycle    enable\n"); @@ -3253,7 +3255,7 @@ static int clk_dump_show(struct seq_file *s, void *data)  {  	struct clk_core *c;  	bool first_node = true; -	struct hlist_head **lists = (struct hlist_head **)s->private; +	struct hlist_head **lists = s->private;  	seq_putc(s, '{');  	clk_prepare_lock(); @@ -4880,8 +4882,8 @@ static struct device_node *get_clk_provider_node(struct device *dev)  	np = dev->of_node;  	parent_np = dev->parent ? dev->parent->of_node : NULL; -	if (!of_find_property(np, "#clock-cells", NULL)) -		if (of_find_property(parent_np, "#clock-cells", NULL)) +	if (!of_property_present(np, "#clock-cells")) +		if (of_property_present(parent_np, "#clock-cells"))  			np = parent_np;  	return np;  |