Commit 0a2b6497 authored by Thomas Gleixner's avatar Thomas Gleixner

irqchip/metag-ext: Use irq_set_chip_handler_name_locked()

Hand in irq_data and avoid the redundant lookup of irq_desc.

Originally-from: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent d2aa914d
...@@ -404,7 +404,6 @@ static int meta_intc_irq_set_type(struct irq_data *data, unsigned int flow_type) ...@@ -404,7 +404,6 @@ static int meta_intc_irq_set_type(struct irq_data *data, unsigned int flow_type)
#ifdef CONFIG_METAG_SUSPEND_MEM #ifdef CONFIG_METAG_SUSPEND_MEM
struct meta_intc_priv *priv = &meta_intc_priv; struct meta_intc_priv *priv = &meta_intc_priv;
#endif #endif
unsigned int irq = data->irq;
irq_hw_number_t hw = data->hwirq; irq_hw_number_t hw = data->hwirq;
unsigned int bit = 1 << meta_intc_offset(hw); unsigned int bit = 1 << meta_intc_offset(hw);
void __iomem *level_addr = meta_intc_level_addr(hw); void __iomem *level_addr = meta_intc_level_addr(hw);
...@@ -413,10 +412,10 @@ static int meta_intc_irq_set_type(struct irq_data *data, unsigned int flow_type) ...@@ -413,10 +412,10 @@ static int meta_intc_irq_set_type(struct irq_data *data, unsigned int flow_type)
/* update the chip/handler */ /* update the chip/handler */
if (flow_type & IRQ_TYPE_LEVEL_MASK) if (flow_type & IRQ_TYPE_LEVEL_MASK)
__irq_set_chip_handler_name_locked(irq, &meta_intc_level_chip, irq_set_chip_handler_name_locked(data, &meta_intc_level_chip,
handle_level_irq, NULL); handle_level_irq, NULL);
else else
__irq_set_chip_handler_name_locked(irq, &meta_intc_edge_chip, irq_set_chip_handler_name_locked(data, &meta_intc_edge_chip,
handle_edge_irq, NULL); handle_edge_irq, NULL);
/* and clear/set the bit in HWLEVELEXT */ /* and clear/set the bit in HWLEVELEXT */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment