hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/memory/atmel-sdramc.c
....@@ -1,22 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Atmel (Multi-port DDR-)SDRAM Controller driver
34 *
45 * Author: Alexandre Belloni <alexandre.belloni@free-electrons.com>
56 *
67 * Copyright (C) 2014 Atmel
7
- *
8
- * This program is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation version 2 of the License.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License
18
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
19
- *
208 */
219
2210 #include <linux/clk.h>
....@@ -59,19 +47,17 @@
5947 caps = of_device_get_match_data(&pdev->dev);
6048
6149 if (caps->has_ddrck) {
62
- clk = devm_clk_get(&pdev->dev, "ddrck");
50
+ clk = devm_clk_get_enabled(&pdev->dev, "ddrck");
6351 if (IS_ERR(clk))
6452 return PTR_ERR(clk);
65
- clk_prepare_enable(clk);
6653 }
6754
6855 if (caps->has_mpddr_clk) {
69
- clk = devm_clk_get(&pdev->dev, "mpddr");
56
+ clk = devm_clk_get_enabled(&pdev->dev, "mpddr");
7057 if (IS_ERR(clk)) {
7158 pr_err("AT91 RAMC: couldn't get mpddr clock\n");
7259 return PTR_ERR(clk);
7360 }
74
- clk_prepare_enable(clk);
7561 }
7662
7763 return 0;