.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * CPU frequency scaling for DaVinci |
---|
3 | 4 | * |
---|
4 | | - * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/ |
---|
| 5 | + * Copyright (C) 2009 Texas Instruments Incorporated - https://www.ti.com/ |
---|
5 | 6 | * |
---|
6 | 7 | * Based on linux/arch/arm/plat-omap/cpu-omap.c. Original Copyright follows: |
---|
7 | 8 | * |
---|
.. | .. |
---|
13 | 14 | * Copyright (C) 2007-2008 Texas Instruments, Inc. |
---|
14 | 15 | * Updated to support OMAP3 |
---|
15 | 16 | * 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. |
---|
20 | 17 | */ |
---|
21 | 18 | #include <linux/types.h> |
---|
22 | 19 | #include <linux/cpufreq.h> |
---|
23 | 20 | #include <linux/init.h> |
---|
24 | 21 | #include <linux/err.h> |
---|
25 | 22 | #include <linux/clk.h> |
---|
| 23 | +#include <linux/platform_data/davinci-cpufreq.h> |
---|
26 | 24 | #include <linux/platform_device.h> |
---|
27 | 25 | #include <linux/export.h> |
---|
28 | | - |
---|
29 | | -#include <mach/hardware.h> |
---|
30 | | -#include <mach/cpufreq.h> |
---|
31 | | -#include <mach/common.h> |
---|
32 | 26 | |
---|
33 | 27 | struct davinci_cpufreq { |
---|
34 | 28 | struct device *dev; |
---|
.. | .. |
---|
96 | 90 | * Setting the latency to 2000 us to accommodate addition of drivers |
---|
97 | 91 | * to pre/post change notification list. |
---|
98 | 92 | */ |
---|
99 | | - return cpufreq_generic_init(policy, freq_table, 2000 * 1000); |
---|
| 93 | + cpufreq_generic_init(policy, freq_table, 2000 * 1000); |
---|
| 94 | + return 0; |
---|
100 | 95 | } |
---|
101 | 96 | |
---|
102 | 97 | static struct cpufreq_driver davinci_driver = { |
---|