/* check_wakeup_irqs - check if any wake-up interrupts are pending  */
int check_wakeup_irqs(void)
/* check_wakeup_irqs - check if any wake-up interrupts are pending  */
int check_wakeup_irqs(void)
{
	struct irq_desc *desc;
	int irq;
	for_each_irq_desc(irq, desc)
		if ((desc->status & IRQ_WAKEUP) && (desc->status & IRQ_PENDING))
			return -EBUSY;
	return 0;
}