hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/cpufreq/pasemi-cpufreq.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2007 PA Semi, Inc
34 *
....@@ -8,21 +9,6 @@
89 *
910 * Based on arch/powerpc/platforms/cell/cbe_cpufreq.c:
1011 * (C) Copyright IBM Deutschland Entwicklung GmbH 2005
11
- *
12
- * This program is free software; you can redistribute it and/or modify
13
- * it under the terms of the GNU General Public License as published by
14
- * the Free Software Foundation; either version 2, or (at your option)
15
- * any later version.
16
- *
17
- * This program is distributed in the hope that it will be useful,
18
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
- * GNU General Public License for more details.
21
- *
22
- * You should have received a copy of the GNU General Public License
23
- * along with this program; if not, write to the Free Software
24
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25
- *
2612 */
2713
2814 #include <linux/cpufreq.h>
....@@ -35,6 +21,8 @@
3521 #include <asm/prom.h>
3622 #include <asm/time.h>
3723 #include <asm/smp.h>
24
+
25
+#include <platforms/pasemi/pasemi.h>
3826
3927 #define SDCASR_REG 0x0100
4028 #define SDCASR_REG_STRIDE 0x1000
....@@ -208,7 +196,8 @@
208196 policy->cur = pas_freqs[cur_astate].frequency;
209197 ppc_proc_freq = policy->cur * 1000ul;
210198
211
- return cpufreq_generic_init(policy, pas_freqs, get_gizmo_latency());
199
+ cpufreq_generic_init(policy, pas_freqs, get_gizmo_latency());
200
+ return 0;
212201
213202 out_unmap_sdcasr:
214203 iounmap(sdcasr_mapbase);