Skip to content

Commit

Permalink
[ARM] 3794/1: S3C24XX: do not defined set_irq_wake when no CONFIG_PM
Browse files Browse the repository at this point in the history
Patch from Ben Dooks

Do not define set_irq_wake as a real function if
the CONFIG_PM option is not set.

Fixes bug reported by Thomas Gleixner.

Signed-off-by: Ben Dooks <[email protected]>
Signed-off-by: Russell King <[email protected]>
  • Loading branch information
Ben Dooks authored and Russell King committed Sep 18, 2006
1 parent 71aa705 commit a9c3685
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/arm/mach-s3c2410/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,10 @@ s3c_irqsub_ack(unsigned int irqno, unsigned int parentmask, unsigned int group)

/* exported for use in arch/arm/mach-s3c2410 */

#ifdef CONFIG_PM
extern int s3c_irq_wake(unsigned int irqno, unsigned int state);
#else
#define s3c_irq_wake NULL
#endif

extern int s3c_irqext_type(unsigned int irq, unsigned int type);

0 comments on commit a9c3685

Please sign in to comment.