diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-pxa/corgi_lcd.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/Makefile | 4 | ||||
-rw-r--r-- | arch/powerpc/kernel/setup-common.c | 1 | ||||
-rw-r--r-- | arch/ppc64/kernel/i8259.h | 17 | ||||
-rw-r--r-- | arch/ppc64/kernel/xics.c | 7 | ||||
-rw-r--r-- | arch/um/include/sysdep-i386/thread.h | 2 | ||||
-rw-r--r-- | arch/um/include/sysdep-x86_64/thread.h | 2 |
7 files changed, 9 insertions, 26 deletions
diff --git a/arch/arm/mach-pxa/corgi_lcd.c b/arch/arm/mach-pxa/corgi_lcd.c index 850538fadece..370df113dc06 100644 --- a/arch/arm/mach-pxa/corgi_lcd.c +++ b/arch/arm/mach-pxa/corgi_lcd.c | |||
@@ -488,6 +488,7 @@ static int is_pxafb_device(struct device * dev, void * data) | |||
488 | 488 | ||
489 | unsigned long spitz_get_hsync_len(void) | 489 | unsigned long spitz_get_hsync_len(void) |
490 | { | 490 | { |
491 | #ifdef CONFIG_FB_PXA | ||
491 | if (!spitz_pxafb_dev) { | 492 | if (!spitz_pxafb_dev) { |
492 | spitz_pxafb_dev = bus_find_device(&platform_bus_type, NULL, NULL, is_pxafb_device); | 493 | spitz_pxafb_dev = bus_find_device(&platform_bus_type, NULL, NULL, is_pxafb_device); |
493 | if (!spitz_pxafb_dev) | 494 | if (!spitz_pxafb_dev) |
@@ -496,6 +497,7 @@ unsigned long spitz_get_hsync_len(void) | |||
496 | if (!get_hsync_time) | 497 | if (!get_hsync_time) |
497 | get_hsync_time = symbol_get(pxafb_get_hsync_time); | 498 | get_hsync_time = symbol_get(pxafb_get_hsync_time); |
498 | if (!get_hsync_time) | 499 | if (!get_hsync_time) |
500 | #endif | ||
499 | return 0; | 501 | return 0; |
500 | 502 | ||
501 | return pxafb_get_hsync_time(spitz_pxafb_dev); | 503 | return pxafb_get_hsync_time(spitz_pxafb_dev); |
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index 0118e516b01f..572d4f5eaacb 100644 --- a/arch/powerpc/kernel/Makefile +++ b/arch/powerpc/kernel/Makefile | |||
@@ -32,12 +32,12 @@ extra-y += vmlinux.lds | |||
32 | 32 | ||
33 | obj-y += process.o init_task.o time.o \ | 33 | obj-y += process.o init_task.o time.o \ |
34 | prom.o traps.o setup-common.o | 34 | prom.o traps.o setup-common.o |
35 | obj-$(CONFIG_PPC32) += entry_32.o idle_6xx.o setup_32.o misc_32.o \ | 35 | obj-$(CONFIG_PPC32) += entry_32.o setup_32.o misc_32.o systbl.o |
36 | systbl.o | ||
37 | obj-$(CONFIG_PPC64) += misc_64.o | 36 | obj-$(CONFIG_PPC64) += misc_64.o |
38 | obj-$(CONFIG_PPC_OF) += prom_init.o | 37 | obj-$(CONFIG_PPC_OF) += prom_init.o |
39 | obj-$(CONFIG_MODULES) += ppc_ksyms.o | 38 | obj-$(CONFIG_MODULES) += ppc_ksyms.o |
40 | obj-$(CONFIG_BOOTX_TEXT) += btext.o | 39 | obj-$(CONFIG_BOOTX_TEXT) += btext.o |
40 | obj-$(CONFIG_6xx) += idle_6xx.o | ||
41 | 41 | ||
42 | ifeq ($(CONFIG_PPC_ISERIES),y) | 42 | ifeq ($(CONFIG_PPC_ISERIES),y) |
43 | $(obj)/head_64.o: $(obj)/lparmap.s | 43 | $(obj)/head_64.o: $(obj)/lparmap.s |
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index d4f0a4c3b5bc..aa743a50a20a 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c | |||
@@ -34,7 +34,6 @@ | |||
34 | #include <asm/prom.h> | 34 | #include <asm/prom.h> |
35 | #include <asm/processor.h> | 35 | #include <asm/processor.h> |
36 | #include <asm/pgtable.h> | 36 | #include <asm/pgtable.h> |
37 | #include <asm/bootinfo.h> | ||
38 | #include <asm/smp.h> | 37 | #include <asm/smp.h> |
39 | #include <asm/elf.h> | 38 | #include <asm/elf.h> |
40 | #include <asm/machdep.h> | 39 | #include <asm/machdep.h> |
diff --git a/arch/ppc64/kernel/i8259.h b/arch/ppc64/kernel/i8259.h deleted file mode 100644 index f74764ba0bfa..000000000000 --- a/arch/ppc64/kernel/i8259.h +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | /* | ||
2 | * c 2001 PPC 64 Team, IBM Corp | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or | ||
5 | * modify it under the terms of the GNU General Public License | ||
6 | * as published by the Free Software Foundation; either version | ||
7 | * 2 of the License, or (at your option) any later version. | ||
8 | */ | ||
9 | #ifndef _PPC_KERNEL_i8259_H | ||
10 | #define _PPC_KERNEL_i8259_H | ||
11 | |||
12 | extern struct hw_interrupt_type i8259_pic; | ||
13 | |||
14 | extern void i8259_init(int offset); | ||
15 | extern int i8259_irq(int); | ||
16 | |||
17 | #endif /* _PPC_KERNEL_i8259_H */ | ||
diff --git a/arch/ppc64/kernel/xics.c b/arch/ppc64/kernel/xics.c index daf93885dcfa..a32207dcf2e3 100644 --- a/arch/ppc64/kernel/xics.c +++ b/arch/ppc64/kernel/xics.c | |||
@@ -28,8 +28,7 @@ | |||
28 | #include <asm/xics.h> | 28 | #include <asm/xics.h> |
29 | #include <asm/hvcall.h> | 29 | #include <asm/hvcall.h> |
30 | #include <asm/machdep.h> | 30 | #include <asm/machdep.h> |
31 | 31 | #include <asm/i8259.h> | |
32 | #include "i8259.h" | ||
33 | 32 | ||
34 | static unsigned int xics_startup(unsigned int irq); | 33 | static unsigned int xics_startup(unsigned int irq); |
35 | static void xics_enable_irq(unsigned int irq); | 34 | static void xics_enable_irq(unsigned int irq); |
@@ -366,7 +365,7 @@ int xics_get_irq(struct pt_regs *regs) | |||
366 | 365 | ||
367 | /* for sanity, this had better be < NR_IRQS - 16 */ | 366 | /* for sanity, this had better be < NR_IRQS - 16 */ |
368 | if (vec == xics_irq_8259_cascade_real) { | 367 | if (vec == xics_irq_8259_cascade_real) { |
369 | irq = i8259_irq(cpu); | 368 | irq = i8259_irq(regs); |
370 | if (irq == -1) { | 369 | if (irq == -1) { |
371 | /* Spurious cascaded interrupt. Still must ack xics */ | 370 | /* Spurious cascaded interrupt. Still must ack xics */ |
372 | xics_end_irq(irq_offset_up(xics_irq_8259_cascade)); | 371 | xics_end_irq(irq_offset_up(xics_irq_8259_cascade)); |
@@ -589,7 +588,7 @@ static int __init xics_setup_i8259(void) | |||
589 | no_action, 0, "8259 cascade", NULL)) | 588 | no_action, 0, "8259 cascade", NULL)) |
590 | printk(KERN_ERR "xics_setup_i8259: couldn't get 8259 " | 589 | printk(KERN_ERR "xics_setup_i8259: couldn't get 8259 " |
591 | "cascade\n"); | 590 | "cascade\n"); |
592 | i8259_init(0); | 591 | i8259_init(0, 0); |
593 | } | 592 | } |
594 | return 0; | 593 | return 0; |
595 | } | 594 | } |
diff --git a/arch/um/include/sysdep-i386/thread.h b/arch/um/include/sysdep-i386/thread.h index e2bd6bae8b8a..243fed44d780 100644 --- a/arch/um/include/sysdep-i386/thread.h +++ b/arch/um/include/sysdep-i386/thread.h | |||
@@ -4,7 +4,7 @@ | |||
4 | #include <kern_constants.h> | 4 | #include <kern_constants.h> |
5 | 5 | ||
6 | #define TASK_DEBUGREGS(task) ((unsigned long *) &(((char *) (task))[HOST_TASK_DEBUGREGS])) | 6 | #define TASK_DEBUGREGS(task) ((unsigned long *) &(((char *) (task))[HOST_TASK_DEBUGREGS])) |
7 | #ifdef CONFIG_MODE_TT | 7 | #ifdef UML_CONFIG_MODE_TT |
8 | #define TASK_EXTERN_PID(task) *((int *) &(((char *) (task))[HOST_TASK_EXTERN_PID])) | 8 | #define TASK_EXTERN_PID(task) *((int *) &(((char *) (task))[HOST_TASK_EXTERN_PID])) |
9 | #endif | 9 | #endif |
10 | 10 | ||
diff --git a/arch/um/include/sysdep-x86_64/thread.h b/arch/um/include/sysdep-x86_64/thread.h index 6a76a7f3683f..cbef3e1697f4 100644 --- a/arch/um/include/sysdep-x86_64/thread.h +++ b/arch/um/include/sysdep-x86_64/thread.h | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | #include <kern_constants.h> | 4 | #include <kern_constants.h> |
5 | 5 | ||
6 | #ifdef CONFIG_MODE_TT | 6 | #ifdef UML_CONFIG_MODE_TT |
7 | #define TASK_EXTERN_PID(task) *((int *) &(((char *) (task))[HOST_TASK_EXTERN_PID])) | 7 | #define TASK_EXTERN_PID(task) *((int *) &(((char *) (task))[HOST_TASK_EXTERN_PID])) |
8 | #endif | 8 | #endif |
9 | 9 | ||