hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/clk/clk-hi655x.c
....@@ -1,18 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Clock driver for Hi655x
34 *
45 * Copyright (c) 2017, Linaro Ltd.
56 *
67 * Author: Daniel Lezcano <daniel.lezcano@linaro.org>
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms and conditions of the GNU General Public License,
10
- * version 2, as published by the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope it will be useful, but WITHOUT
13
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15
- * more details.
168 */
179 #include <linux/clk-provider.h>
1810 #include <linux/module.h>
....@@ -107,8 +99,8 @@
10799 if (ret)
108100 return ret;
109101
110
- return of_clk_add_hw_provider(parent->of_node, of_clk_hw_simple_get,
111
- &hi655x_clk->clk_hw);
102
+ return devm_of_clk_add_hw_provider(&pdev->dev, of_clk_hw_simple_get,
103
+ &hi655x_clk->clk_hw);
112104 }
113105
114106 static struct platform_driver hi655x_clk_driver = {