static void buttons_irq(int irq, void *dev_id, struct pt_regs *reg) { struct key_info *k; int i; int found = 0; int up; int flags; for (i = 0; i < sizeof key_info_tab / sizeof key_info_tab[1]; i++) { k = key_info_tab + i; if (k->irq_no == irq) { found = 1; break; } } if (!found) { printk("bad irq %d in button\n", irq); return; }