Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
[linux-2.6-block.git] / kernel / irq / spurious.c
index 32144175458d77d39dc65353770aa187818dfe6f..5707f97a3e6ac50954f8d407d5a4aadcaa2b96fc 100644 (file)
@@ -211,14 +211,12 @@ static void __report_bad_irq(struct irq_desc *desc, irqreturn_t action_ret)
         * desc->lock here. See synchronize_irq().
         */
        raw_spin_lock_irqsave(&desc->lock, flags);
-       action = desc->action;
-       while (action) {
+       for_each_action_of_desc(desc, action) {
                printk(KERN_ERR "[<%p>] %pf", action->handler, action->handler);
                if (action->thread_fn)
                        printk(KERN_CONT " threaded [<%p>] %pf",
                                        action->thread_fn, action->thread_fn);
                printk(KERN_CONT "\n");
-               action = action->next;
        }
        raw_spin_unlock_irqrestore(&desc->lock, flags);
 }