diff options
author | Barry Song <Baohua.Song@csr.com> | 2013-02-04 00:41:36 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-02-05 00:53:14 -0500 |
commit | ef4acb75a019783fc5132a5066232ef80209d7ec (patch) | |
tree | 37299084a2bd277f08d47b602d49ebdb58507c5b /arch/arm/mach-prima2 | |
parent | 07e0da3dca218ff042fc9cd31cbe3636a41d183d (diff) |
ARM: MARCO: fix the build issue due to gic-vic-to-irqchip move
Fix the issue:
tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git next/soc
head: 6ed05a2aab3763b58922247543d7079106b254dc
commit: af70fdc947dbe835acc26c6ee9e8e930f38935f8 [4/8] Merge branch 'marco-timer-cleanup-rebase' of
git://gitorious.org/sirfprima2-kernel/sirfprima2-kernel into next/soc
config: make ARCH=arm prima2_defconfig
All error/warnings:
>> arch/arm/mach-prima2/platsmp.c:20:30: fatal error: asm/hardware/gic.h: No such file or directory
compilation terminated.
--
>> arch/arm/mach-prima2/common.c:15:30: fatal error: asm/hardware/gic.h: No such file or directory
compilation terminated.
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Cc: Xie ChanglongX <changlongx.xie@intel.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-prima2')
-rw-r--r-- | arch/arm/mach-prima2/common.c | 16 | ||||
-rw-r--r-- | arch/arm/mach-prima2/platsmp.c | 8 |
2 files changed, 3 insertions, 21 deletions
diff --git a/arch/arm/mach-prima2/common.c b/arch/arm/mach-prima2/common.c index 00a65649a7e2..2d57aa479a7b 100644 --- a/arch/arm/mach-prima2/common.c +++ b/arch/arm/mach-prima2/common.c | |||
@@ -8,11 +8,10 @@ | |||
8 | 8 | ||
9 | #include <linux/init.h> | 9 | #include <linux/init.h> |
10 | #include <linux/kernel.h> | 10 | #include <linux/kernel.h> |
11 | #include <linux/of_irq.h> | 11 | #include <linux/irqchip.h> |
12 | #include <asm/sizes.h> | 12 | #include <asm/sizes.h> |
13 | #include <asm/mach-types.h> | 13 | #include <asm/mach-types.h> |
14 | #include <asm/mach/arch.h> | 14 | #include <asm/mach/arch.h> |
15 | #include <asm/hardware/gic.h> | ||
16 | #include <linux/of.h> | 15 | #include <linux/of.h> |
17 | #include <linux/of_platform.h> | 16 | #include <linux/of_platform.h> |
18 | #include "common.h" | 17 | #include "common.h" |
@@ -61,16 +60,6 @@ MACHINE_END | |||
61 | #endif | 60 | #endif |
62 | 61 | ||
63 | #ifdef CONFIG_ARCH_MARCO | 62 | #ifdef CONFIG_ARCH_MARCO |
64 | static const struct of_device_id marco_irq_match[] __initconst = { | ||
65 | { .compatible = "arm,cortex-a9-gic", .data = gic_of_init, }, | ||
66 | { /* sentinel */ } | ||
67 | }; | ||
68 | |||
69 | static void __init marco_init_irq(void) | ||
70 | { | ||
71 | of_irq_init(marco_irq_match); | ||
72 | } | ||
73 | |||
74 | static const char *marco_dt_match[] __initdata = { | 63 | static const char *marco_dt_match[] __initdata = { |
75 | "sirf,marco", | 64 | "sirf,marco", |
76 | NULL | 65 | NULL |
@@ -80,9 +69,8 @@ DT_MACHINE_START(MARCO_DT, "Generic MARCO (Flattened Device Tree)") | |||
80 | /* Maintainer: Barry Song <baohua.song@csr.com> */ | 69 | /* Maintainer: Barry Song <baohua.song@csr.com> */ |
81 | .smp = smp_ops(sirfsoc_smp_ops), | 70 | .smp = smp_ops(sirfsoc_smp_ops), |
82 | .map_io = sirfsoc_map_io, | 71 | .map_io = sirfsoc_map_io, |
83 | .init_irq = marco_init_irq, | 72 | .init_irq = irqchip_init, |
84 | .init_time = sirfsoc_marco_timer_init, | 73 | .init_time = sirfsoc_marco_timer_init, |
85 | .handle_irq = gic_handle_irq, | ||
86 | .init_machine = sirfsoc_mach_init, | 74 | .init_machine = sirfsoc_mach_init, |
87 | .init_late = sirfsoc_init_late, | 75 | .init_late = sirfsoc_init_late, |
88 | .dt_compat = marco_dt_match, | 76 | .dt_compat = marco_dt_match, |
diff --git a/arch/arm/mach-prima2/platsmp.c b/arch/arm/mach-prima2/platsmp.c index 2395022bc733..4b788310f6a6 100644 --- a/arch/arm/mach-prima2/platsmp.c +++ b/arch/arm/mach-prima2/platsmp.c | |||
@@ -11,13 +11,13 @@ | |||
11 | #include <linux/delay.h> | 11 | #include <linux/delay.h> |
12 | #include <linux/of.h> | 12 | #include <linux/of.h> |
13 | #include <linux/of_address.h> | 13 | #include <linux/of_address.h> |
14 | #include <linux/irqchip/arm-gic.h> | ||
14 | #include <asm/page.h> | 15 | #include <asm/page.h> |
15 | #include <asm/mach/map.h> | 16 | #include <asm/mach/map.h> |
16 | #include <asm/smp_plat.h> | 17 | #include <asm/smp_plat.h> |
17 | #include <asm/smp_scu.h> | 18 | #include <asm/smp_scu.h> |
18 | #include <asm/cacheflush.h> | 19 | #include <asm/cacheflush.h> |
19 | #include <asm/cputype.h> | 20 | #include <asm/cputype.h> |
20 | #include <asm/hardware/gic.h> | ||
21 | #include <mach/map.h> | 21 | #include <mach/map.h> |
22 | 22 | ||
23 | #include "common.h" | 23 | #include "common.h" |
@@ -142,18 +142,12 @@ static int __cpuinit sirfsoc_boot_secondary(unsigned int cpu, struct task_struct | |||
142 | return pen_release != -1 ? -ENOSYS : 0; | 142 | return pen_release != -1 ? -ENOSYS : 0; |
143 | } | 143 | } |
144 | 144 | ||
145 | static void __init sirfsoc_smp_init_cpus(void) | ||
146 | { | ||
147 | set_smp_cross_call(gic_raise_softirq); | ||
148 | } | ||
149 | |||
150 | static void __init sirfsoc_smp_prepare_cpus(unsigned int max_cpus) | 145 | static void __init sirfsoc_smp_prepare_cpus(unsigned int max_cpus) |
151 | { | 146 | { |
152 | scu_enable(scu_base); | 147 | scu_enable(scu_base); |
153 | } | 148 | } |
154 | 149 | ||
155 | struct smp_operations sirfsoc_smp_ops __initdata = { | 150 | struct smp_operations sirfsoc_smp_ops __initdata = { |
156 | .smp_init_cpus = sirfsoc_smp_init_cpus, | ||
157 | .smp_prepare_cpus = sirfsoc_smp_prepare_cpus, | 151 | .smp_prepare_cpus = sirfsoc_smp_prepare_cpus, |
158 | .smp_secondary_init = sirfsoc_secondary_init, | 152 | .smp_secondary_init = sirfsoc_secondary_init, |
159 | .smp_boot_secondary = sirfsoc_boot_secondary, | 153 | .smp_boot_secondary = sirfsoc_boot_secondary, |