diff options
Diffstat (limited to 'arch/ppc/platforms/pplus.c')
-rw-r--r-- | arch/ppc/platforms/pplus.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/arch/ppc/platforms/pplus.c b/arch/ppc/platforms/pplus.c index e70aae20d6f9..22bd40cfb092 100644 --- a/arch/ppc/platforms/pplus.c +++ b/arch/ppc/platforms/pplus.c | |||
@@ -646,14 +646,6 @@ static void pplus_power_off(void) | |||
646 | pplus_halt(); | 646 | pplus_halt(); |
647 | } | 647 | } |
648 | 648 | ||
649 | static unsigned int pplus_irq_canonicalize(u_int irq) | ||
650 | { | ||
651 | if (irq == 2) | ||
652 | return 9; | ||
653 | else | ||
654 | return irq; | ||
655 | } | ||
656 | |||
657 | static void __init pplus_init_IRQ(void) | 649 | static void __init pplus_init_IRQ(void) |
658 | { | 650 | { |
659 | int i; | 651 | int i; |
@@ -673,10 +665,7 @@ static void __init pplus_init_IRQ(void) | |||
673 | ppc_md.get_irq = openpic_get_irq; | 665 | ppc_md.get_irq = openpic_get_irq; |
674 | } | 666 | } |
675 | 667 | ||
676 | for (i = 0; i < NUM_8259_INTERRUPTS; i++) | 668 | i8259_init(0, 0); |
677 | irq_desc[i].handler = &i8259_pic; | ||
678 | |||
679 | i8259_init(0); | ||
680 | 669 | ||
681 | if (ppc_md.progress) | 670 | if (ppc_md.progress) |
682 | ppc_md.progress("init_irq: exit", 0); | 671 | ppc_md.progress("init_irq: exit", 0); |
@@ -872,10 +861,10 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5, | |||
872 | ISA_DMA_THRESHOLD = 0x00ffffff; | 861 | ISA_DMA_THRESHOLD = 0x00ffffff; |
873 | DMA_MODE_READ = 0x44; | 862 | DMA_MODE_READ = 0x44; |
874 | DMA_MODE_WRITE = 0x48; | 863 | DMA_MODE_WRITE = 0x48; |
864 | ppc_do_canonicalize_irqs = 1; | ||
875 | 865 | ||
876 | ppc_md.setup_arch = pplus_setup_arch; | 866 | ppc_md.setup_arch = pplus_setup_arch; |
877 | ppc_md.show_cpuinfo = pplus_show_cpuinfo; | 867 | ppc_md.show_cpuinfo = pplus_show_cpuinfo; |
878 | ppc_md.irq_canonicalize = pplus_irq_canonicalize; | ||
879 | ppc_md.init_IRQ = pplus_init_IRQ; | 868 | ppc_md.init_IRQ = pplus_init_IRQ; |
880 | /* this gets changed later on if we have an OpenPIC -- Cort */ | 869 | /* this gets changed later on if we have an OpenPIC -- Cort */ |
881 | ppc_md.get_irq = i8259_irq; | 870 | ppc_md.get_irq = i8259_irq; |
@@ -911,6 +900,6 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5, | |||
911 | ppc_md.kgdb_map_scc = gen550_kgdb_map_scc; | 900 | ppc_md.kgdb_map_scc = gen550_kgdb_map_scc; |
912 | #endif | 901 | #endif |
913 | #ifdef CONFIG_SMP | 902 | #ifdef CONFIG_SMP |
914 | ppc_md.smp_ops = &pplus_smp_ops; | 903 | smp_ops = &pplus_smp_ops; |
915 | #endif /* CONFIG_SMP */ | 904 | #endif /* CONFIG_SMP */ |
916 | } | 905 | } |