From: Ingo Molnar Date: Thu, 29 Jun 2006 09:24:57 +0000 (-0700) Subject: [PATCH] genirq: cleanup: no_irq_type -> no_irq_chip rename X-Git-Tag: v2.6.18-rc1~367 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1c2662cbc6a0a9772655649bdf579803d33470b;p=linux-2.6 [PATCH] genirq: cleanup: no_irq_type -> no_irq_chip rename Rename no_irq_type to no_irq_chip. Signed-off-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index 3a2dbcc9e2..01fc7f79d7 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c @@ -45,7 +45,7 @@ handle_bad_irq(unsigned int irq, struct irq_desc *desc, struct pt_regs *regs) struct irq_desc irq_desc[NR_IRQS] __cacheline_aligned = { [0 ... NR_IRQS-1] = { .status = IRQ_DISABLED, - .chip = &no_irq_type, + .chip = &no_irq_chip, .handle_irq = handle_bad_irq, .depth = 1, .lock = SPIN_LOCK_UNLOCKED, @@ -79,8 +79,8 @@ static unsigned int noop_ret(unsigned int irq) /* * Generic no controller implementation */ -struct hw_interrupt_type no_irq_type = { - .typename = "none", +struct irq_chip no_irq_chip = { + .name = "none", .startup = noop_ret, .shutdown = noop, .enable = noop, diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 627d401c29..9eb1d518ee 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -199,7 +199,7 @@ int setup_irq(unsigned int irq, struct irqaction *new) if (irq >= NR_IRQS) return -EINVAL; - if (desc->chip == &no_irq_type) + if (desc->chip == &no_irq_chip) return -ENOSYS; /* * Some drivers like serial.c use request_irq() heavily, diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c index f60b85b61e..607c7809ad 100644 --- a/kernel/irq/proc.c +++ b/kernel/irq/proc.c @@ -117,7 +117,7 @@ void register_irq_proc(unsigned int irq) char name [MAX_NAMELEN]; if (!root_irq_dir || - (irq_desc[irq].chip == &no_irq_type) || + (irq_desc[irq].chip == &no_irq_chip) || irq_desc[irq].dir) return;