hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/clk/clk-twl6040.c
....@@ -1,23 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * TWL6040 clock module driver for OMAP4 McPDM functional clock
34 *
45 * Copyright (C) 2012 Texas Instruments Inc.
56 * 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
-*
217 */
228
239 #include <linux/module.h>
....@@ -157,9 +143,8 @@
157143
158144 platform_set_drvdata(pdev, clkdata);
159145
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);
163148 }
164149
165150 static struct platform_driver twl6040_pdmclk_driver = {