From: Guennadi Liakhovetski Date: Tue, 16 Oct 2007 08:24:01 +0000 (-0700) Subject: provide stubs for enable_irq_wake() and disable_irq_wake() X-Git-Tag: v2.6.24-rc1~1256 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa5346a2126ea65e8ef04eebea0f2481f701bdb8;p=linux-2.6 provide stubs for enable_irq_wake() and disable_irq_wake() Provide {enable,disable}_irq_wakeup dummies for undefined cross-compilers for platforms without CONFIG_GENERIC_IRQ. Needed by wake-up-from-a-serial-port.patch Signed-off-by: Guennadi Liakhovetski Cc: Thomas Gleixner Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index 5523f19d88..8e5f289052 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h @@ -205,6 +205,15 @@ static inline int disable_irq_wake(unsigned int irq) enable_irq(irq) # endif +static inline int enable_irq_wake(unsigned int irq) +{ + return 0; +} + +static inline int disable_irq_wake(unsigned int irq) +{ + return 0; +} #endif /* CONFIG_GENERIC_HARDIRQS */ #ifndef __ARCH_SET_SOFTIRQ_PENDING