提交 f8f669f7 编写于 作者: L Linus Walleij

gpio: pl061: drop references to "virtual" IRQ

Rename the argument "virq" to just "irq", this IRQ isn't any
more "virtual" than any other Linux IRQ number, we use "hwirq"
for the actual hw-numbers, "virq" is just bogus.

Cc: Haojian Zhuang <haojian.zhuang@linaro.org>
Cc: Rob Herring <rob.herring@calxeda.com>
Acked-by: NBaruch Siach <baruch@tkos.co.il>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 5ba17ae9
...@@ -238,15 +238,15 @@ static struct irq_chip pl061_irqchip = { ...@@ -238,15 +238,15 @@ static struct irq_chip pl061_irqchip = {
.irq_set_type = pl061_irq_type, .irq_set_type = pl061_irq_type,
}; };
static int pl061_irq_map(struct irq_domain *d, unsigned int virq, static int pl061_irq_map(struct irq_domain *d, unsigned int irq,
irq_hw_number_t hw) irq_hw_number_t hwirq)
{ {
struct pl061_gpio *chip = d->host_data; struct pl061_gpio *chip = d->host_data;
irq_set_chip_and_handler_name(virq, &pl061_irqchip, handle_simple_irq, irq_set_chip_and_handler_name(irq, &pl061_irqchip, handle_simple_irq,
"pl061"); "pl061");
irq_set_chip_data(virq, chip); irq_set_chip_data(irq, chip);
irq_set_irq_type(virq, IRQ_TYPE_NONE); irq_set_irq_type(irq, IRQ_TYPE_NONE);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册