hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/cpufreq/davinci-cpufreq.c
....@@ -1,7 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * CPU frequency scaling for DaVinci
34 *
4
- * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
5
+ * Copyright (C) 2009 Texas Instruments Incorporated - https://www.ti.com/
56 *
67 * Based on linux/arch/arm/plat-omap/cpu-omap.c. Original Copyright follows:
78 *
....@@ -13,22 +14,15 @@
1314 * Copyright (C) 2007-2008 Texas Instruments, Inc.
1415 * Updated to support OMAP3
1516 * Rajendra Nayak <rnayak@ti.com>
16
- *
17
- * This program is free software; you can redistribute it and/or modify
18
- * it under the terms of the GNU General Public License version 2 as
19
- * published by the Free Software Foundation.
2017 */
2118 #include <linux/types.h>
2219 #include <linux/cpufreq.h>
2320 #include <linux/init.h>
2421 #include <linux/err.h>
2522 #include <linux/clk.h>
23
+#include <linux/platform_data/davinci-cpufreq.h>
2624 #include <linux/platform_device.h>
2725 #include <linux/export.h>
28
-
29
-#include <mach/hardware.h>
30
-#include <mach/cpufreq.h>
31
-#include <mach/common.h>
3226
3327 struct davinci_cpufreq {
3428 struct device *dev;
....@@ -96,7 +90,8 @@
9690 * Setting the latency to 2000 us to accommodate addition of drivers
9791 * to pre/post change notification list.
9892 */
99
- return cpufreq_generic_init(policy, freq_table, 2000 * 1000);
93
+ cpufreq_generic_init(policy, freq_table, 2000 * 1000);
94
+ return 0;
10095 }
10196
10297 static struct cpufreq_driver davinci_driver = {