.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Clock driver for Hi655x |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (c) 2017, Linaro Ltd. |
---|
5 | 6 | * |
---|
6 | 7 | * 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. |
---|
16 | 8 | */ |
---|
17 | 9 | #include <linux/clk-provider.h> |
---|
18 | 10 | #include <linux/module.h> |
---|
.. | .. |
---|
107 | 99 | if (ret) |
---|
108 | 100 | return ret; |
---|
109 | 101 | |
---|
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); |
---|
112 | 104 | } |
---|
113 | 105 | |
---|
114 | 106 | static struct platform_driver hi655x_clk_driver = { |
---|