diff options
Diffstat (limited to 'arch/arm/common')
-rw-r--r-- | arch/arm/common/vic.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/arch/arm/common/vic.c b/arch/arm/common/vic.c index bc1f9ad61ff6..920ced0b73c5 100644 --- a/arch/arm/common/vic.c +++ b/arch/arm/common/vic.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/list.h> | 22 | #include <linux/list.h> |
23 | #include <linux/io.h> | 23 | #include <linux/io.h> |
24 | #include <linux/sysdev.h> | 24 | #include <linux/sysdev.h> |
25 | #include <linux/amba/bus.h> | ||
25 | 26 | ||
26 | #include <asm/mach/irq.h> | 27 | #include <asm/mach/irq.h> |
27 | #include <asm/hardware/vic.h> | 28 | #include <asm/hardware/vic.h> |
@@ -272,11 +273,6 @@ static struct irq_chip vic_chip = { | |||
272 | static void vik_init_st(void __iomem *base, unsigned int irq_start, | 273 | static void vik_init_st(void __iomem *base, unsigned int irq_start, |
273 | u32 vic_sources); | 274 | u32 vic_sources); |
274 | 275 | ||
275 | enum vic_vendor { | ||
276 | VENDOR_ARM = 0x41, | ||
277 | VENDOR_ST = 0x80, | ||
278 | }; | ||
279 | |||
280 | /** | 276 | /** |
281 | * vic_init - initialise a vectored interrupt controller | 277 | * vic_init - initialise a vectored interrupt controller |
282 | * @base: iomem base address | 278 | * @base: iomem base address |
@@ -289,7 +285,7 @@ void __init vic_init(void __iomem *base, unsigned int irq_start, | |||
289 | { | 285 | { |
290 | unsigned int i; | 286 | unsigned int i; |
291 | u32 cellid = 0; | 287 | u32 cellid = 0; |
292 | enum vic_vendor vendor; | 288 | enum amba_vendor vendor; |
293 | 289 | ||
294 | /* Identify which VIC cell this one is, by reading the ID */ | 290 | /* Identify which VIC cell this one is, by reading the ID */ |
295 | for (i = 0; i < 4; i++) { | 291 | for (i = 0; i < 4; i++) { |
@@ -301,13 +297,13 @@ void __init vic_init(void __iomem *base, unsigned int irq_start, | |||
301 | base, cellid, vendor); | 297 | base, cellid, vendor); |
302 | 298 | ||
303 | switch(vendor) { | 299 | switch(vendor) { |
304 | case VENDOR_ST: | 300 | case AMBA_VENDOR_ST: |
305 | vik_init_st(base, irq_start, vic_sources); | 301 | vik_init_st(base, irq_start, vic_sources); |
306 | return; | 302 | return; |
307 | default: | 303 | default: |
308 | printk(KERN_WARNING "VIC: unknown vendor, continuing anyways\n"); | 304 | printk(KERN_WARNING "VIC: unknown vendor, continuing anyways\n"); |
309 | /* fall through */ | 305 | /* fall through */ |
310 | case VENDOR_ARM: | 306 | case AMBA_VENDOR_ARM: |
311 | break; | 307 | break; |
312 | } | 308 | } |
313 | 309 | ||