aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/Kconfig1
-rw-r--r--arch/m68k/include/asm/q40ints.h2
-rw-r--r--arch/m68k/q40/q40ints.c8
3 files changed, 9 insertions, 2 deletions
diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig
index 290f9c838b35..06198ced2245 100644
--- a/arch/m68k/Kconfig
+++ b/arch/m68k/Kconfig
@@ -87,7 +87,6 @@ config MMU_SUN3
87config USE_GENERIC_HARDIRQS 87config USE_GENERIC_HARDIRQS
88 bool "Use genirq" 88 bool "Use genirq"
89 depends on MMU 89 depends on MMU
90 depends on !Q40
91 select HAVE_GENERIC_HARDIRQS 90 select HAVE_GENERIC_HARDIRQS
92 select GENERIC_IRQ_SHOW 91 select GENERIC_IRQ_SHOW
93 92
diff --git a/arch/m68k/include/asm/q40ints.h b/arch/m68k/include/asm/q40ints.h
index 3d970afb708f..01cdbb4da465 100644
--- a/arch/m68k/include/asm/q40ints.h
+++ b/arch/m68k/include/asm/q40ints.h
@@ -25,5 +25,7 @@
25#define Q40_IRQ14_MASK (1<<6) 25#define Q40_IRQ14_MASK (1<<6)
26#define Q40_IRQ15_MASK (1<<7) 26#define Q40_IRQ15_MASK (1<<7)
27 27
28#ifndef CONFIG_GENERIC_HARDIRQS
28extern unsigned long q40_probe_irq_on (void); 29extern unsigned long q40_probe_irq_on (void);
29extern int q40_probe_irq_off (unsigned long irqs); 30extern int q40_probe_irq_off (unsigned long irqs);
31#endif
diff --git a/arch/m68k/q40/q40ints.c b/arch/m68k/q40/q40ints.c
index afe600c03659..f1e5288f043f 100644
--- a/arch/m68k/q40/q40ints.c
+++ b/arch/m68k/q40/q40ints.c
@@ -15,10 +15,14 @@
15#include <linux/kernel.h> 15#include <linux/kernel.h>
16#include <linux/errno.h> 16#include <linux/errno.h>
17#include <linux/interrupt.h> 17#include <linux/interrupt.h>
18#ifdef CONFIG_GENERIC_HARDIRQS
19#include <linux/irq.h>
20#else
21#include <asm/irq.h>
22#endif
18 23
19#include <asm/ptrace.h> 24#include <asm/ptrace.h>
20#include <asm/system.h> 25#include <asm/system.h>
21#include <asm/irq.h>
22#include <asm/traps.h> 26#include <asm/traps.h>
23 27
24#include <asm/q40_master.h> 28#include <asm/q40_master.h>
@@ -326,6 +330,7 @@ void q40_irq_disable(struct irq_data *data)
326 } 330 }
327} 331}
328 332
333#ifndef CONFIG_GENERIC_HARDIRQS
329unsigned long q40_probe_irq_on(void) 334unsigned long q40_probe_irq_on(void)
330{ 335{
331 printk("irq probing not working - reconfigure the driver to avoid this\n"); 336 printk("irq probing not working - reconfigure the driver to avoid this\n");
@@ -335,3 +340,4 @@ int q40_probe_irq_off(unsigned long irqs)
335{ 340{
336 return -1; 341 return -1;
337} 342}
343#endif