u32 saved_mask; /* for suspend/resume */
 };
 
-/**
- * brcmstb_l2_mask_and_ack - Mask and ack pending interrupt
- * @d: irq_data
- *
- * Chip has separate enable/disable registers instead of a single mask
- * register and pending interrupt is acknowledged by setting a bit.
- *
- * Note: This function is generic and could easily be added to the
- * generic irqchip implementation if there ever becomes a will to do so.
- * Perhaps with a name like irq_gc_mask_disable_and_ack_set().
- *
- * e.g.: https://patchwork.kernel.org/patch/9831047/
- */
-static void brcmstb_l2_mask_and_ack(struct irq_data *d)
-{
-       struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d);
-       struct irq_chip_type *ct = irq_data_get_chip_type(d);
-       u32 mask = d->mask;
-
-       irq_gc_lock(gc);
-       irq_reg_writel(gc, mask, ct->regs.disable);
-       *ct->mask_cache &= ~mask;
-       irq_reg_writel(gc, mask, ct->regs.ack);
-       irq_gc_unlock(gc);
-}
-
 static void brcmstb_l2_intc_irq_handle(struct irq_desc *desc)
 {
        struct brcmstb_l2_intc_data *b = irq_desc_get_handler_data(desc);
        if (init_params->cpu_clear >= 0) {
                ct->regs.ack = init_params->cpu_clear;
                ct->chip.irq_ack = irq_gc_ack_set_bit;
-               ct->chip.irq_mask_ack = brcmstb_l2_mask_and_ack;
+               ct->chip.irq_mask_ack = irq_gc_mask_disable_and_ack_set;
        } else {
                /* No Ack - but still slightly more efficient to define this */
                ct->chip.irq_mask_ack = irq_gc_mask_disable_reg;