From: Jan Beulich Date: Fri, 16 Feb 2007 09:28:26 +0000 (-0800) Subject: [PATCH] small irq management simplification X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5575ddf75ca7e61d6f69b96368e03dd88edd4604;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [PATCH] small irq management simplification Use mask_ack_irq() where possible. Signed-off-by: Jan Beulich Cc: Thomas Gleixner Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index e6dc8b8839d..0133f4f9e9f 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c @@ -565,10 +565,8 @@ __set_irq_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained, /* Uninstall? */ if (handle == handle_bad_irq) { - if (desc->chip != &no_irq_chip) { - desc->chip->mask(irq); - desc->chip->ack(irq); - } + if (desc->chip != &no_irq_chip) + mask_ack_irq(desc, irq); desc->status |= IRQ_DISABLED; desc->depth = 1; }