.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * TWL6040 clock module driver for OMAP4 McPDM functional clock |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2012 Texas Instruments Inc. |
---|
5 | 6 | * Peter Ujfalusi <peter.ujfalusi@ti.com> |
---|
6 | | -* |
---|
7 | | -* This program is free software; you can redistribute it and/or |
---|
8 | | -* modify it under the terms of the GNU General Public License |
---|
9 | | -* version 2 as published by the Free Software Foundation. |
---|
10 | | -* |
---|
11 | | -* This program is distributed in the hope that it will be useful, but |
---|
12 | | -* WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | | -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
14 | | -* General Public License for more details. |
---|
15 | | -* |
---|
16 | | -* You should have received a copy of the GNU General Public License |
---|
17 | | -* along with this program; if not, write to the Free Software |
---|
18 | | -* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
---|
19 | | -* 02110-1301 USA |
---|
20 | | -* |
---|
21 | 7 | */ |
---|
22 | 8 | |
---|
23 | 9 | #include <linux/module.h> |
---|
.. | .. |
---|
157 | 143 | |
---|
158 | 144 | platform_set_drvdata(pdev, clkdata); |
---|
159 | 145 | |
---|
160 | | - return of_clk_add_hw_provider(pdev->dev.parent->of_node, |
---|
161 | | - of_clk_hw_simple_get, |
---|
162 | | - &clkdata->pdmclk_hw); |
---|
| 146 | + return devm_of_clk_add_hw_provider(&pdev->dev, of_clk_hw_simple_get, |
---|
| 147 | + &clkdata->pdmclk_hw); |
---|
163 | 148 | } |
---|
164 | 149 | |
---|
165 | 150 | static struct platform_driver twl6040_pdmclk_driver = { |
---|