forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 072de836f53be56a70cecf70b43ae43b7ce17376
kernel/drivers/clk/clk-conf.c
....@@ -1,10 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * Copyright (C) 2014 Samsung Electronics Co., Ltd.
34 * Sylwester Nawrocki <s.nawrocki@samsung.com>
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 as
7
- * published by the Free Software Foundation.
85 */
96
107 #include <linux/clk.h>
....@@ -13,7 +10,6 @@
1310 #include <linux/device.h>
1411 #include <linux/of.h>
1512 #include <linux/printk.h>
16
-#include "clk.h"
1713
1814 static int __set_clk_parents(struct device_node *node, bool clk_supplier)
1915 {
....@@ -39,7 +35,7 @@
3935 }
4036 if (clkspec.np == node && !clk_supplier)
4137 return 0;
42
- pclk = of_clk_get_from_provider_with_orphans(&clkspec);
38
+ pclk = of_clk_get_from_provider(&clkspec);
4339 if (IS_ERR(pclk)) {
4440 if (PTR_ERR(pclk) != -EPROBE_DEFER)
4541 pr_warn("clk: couldn't get parent clock %d for %pOF\n",
....@@ -55,7 +51,7 @@
5551 rc = 0;
5652 goto err;
5753 }
58
- clk = of_clk_get_from_provider_with_orphans(&clkspec);
54
+ clk = of_clk_get_from_provider(&clkspec);
5955 if (IS_ERR(clk)) {
6056 if (PTR_ERR(clk) != -EPROBE_DEFER)
6157 pr_warn("clk: couldn't get assigned clock %d for %pOF\n",