All pastes #182836 Raw Edit

Mine

public text v1 · immutable
#182836 ·published 2006-09-26 11:57 UTC
rendered paste body
#ifdef  CONFIG_PM
static irqreturn_t
amlm5900_wake_interrupt(int irq, void *ignored, struct pt_regs *regs)
{
        return IRQ_HANDLED;
}

static void amlm5900_register_wakeup_irq(void)
{
        int ret = 0;
 
        ret = request_irq(IRQ_EINT9, &amlm5900_wake_interrupt,
                                IRQF_TRIGGER_RISING | IRQF_SHARED,
                                "amlm5900_wakeup", &amlm5900_wake_interrupt);
        if (ret != 0) {
                printk(KERN_ERR "AML-M5900: no wakeup irq, %d?\n", ret);
        } else {
                enable_irq_wake(IRQ_EINT9);
        }
}
#else
static void amlm5900_register_wakeup_irq(void)
{
}
#endif
 
static void __init amlm5900_init(void)
{
        amlm5900_register_wakeup_irq();

#ifdef CONFIG_FB_S3C2410
        s3c24xx_fb_set_platdata(&amlm5900_lcd_info);
#endif 
}