提交 abda3a24 编写于 作者: S Samuel Ortiz 提交者: Linus Walleij

mfd: Use dummy_irq_chip for tc3589x

This also converts tc3589x to the new irq API.

Cc: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
Signed-off-by: NLinus Walleij <linus.walleij@stericsson.com>
上级 3c5728ed
......@@ -170,17 +170,6 @@ static irqreturn_t tc3589x_irq(int irq, void *data)
return IRQ_HANDLED;
}
static void tc3589x_irq_dummy(unsigned int irq)
{
/* No mask/unmask at this level */
}
static struct irq_chip tc3589x_irq_chip = {
.name = "tc3589x",
.mask = tc3589x_irq_dummy,
.unmask = tc3589x_irq_dummy,
};
static int tc3589x_irq_init(struct tc3589x *tc3589x)
{
int base = tc3589x->irq_base;
......@@ -188,7 +177,7 @@ static int tc3589x_irq_init(struct tc3589x *tc3589x)
for (irq = base; irq < base + TC3589x_NR_INTERNAL_IRQS; irq++) {
set_irq_chip_data(irq, tc3589x);
set_irq_chip_and_handler(irq, &tc3589x_irq_chip,
set_irq_chip_and_handler(irq, &dummy_irq_chip,
handle_edge_irq);
set_irq_nested_thread(irq, 1);
#ifdef CONFIG_ARM
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册