[PATCH 1/3] show_interrupts: use irq_chip::name if available
Peter Korsgaard
jacmet at sunsite.dk
Wed Dec 9 18:32:43 EST 2009
>>>>> "Peter" == Peter Korsgaard <jacmet at sunsite.dk> writes:
Peter> struct irq_chip::typename is going away (replaced by name). Use name if
Peter> set instead of typename in show_interrupt to make ease transition.
Comments?
Peter> Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
Peter> ---
Peter> arch/powerpc/kernel/irq.c | 3 ++-
Peter> 1 files changed, 2 insertions(+), 1 deletions(-)
Peter> diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
Peter> index e5d1211..33e1130 100644
Peter> --- a/arch/powerpc/kernel/irq.c
Peter> +++ b/arch/powerpc/kernel/irq.c
Peter> @@ -203,7 +203,8 @@ int show_interrupts(struct seq_file *p, void *v)
Peter> seq_printf(p, "%10u ", kstat_irqs(i));
Peter> #endif /* CONFIG_SMP */
Peter> if (desc->chip)
Peter> - seq_printf(p, " %s ", desc->chip->typename);
Peter> + seq_printf(p, " %s ", desc->chip->name ?
Peter> + desc->chip->name : desc->chip->typename);
Peter> else
Peter> seq_puts(p, " None ");
Peter> seq_printf(p, "%s", (desc->status & IRQ_LEVEL) ? "Level " : "Edge ");
Peter> --
Peter> 1.6.5
--
Bye, Peter Korsgaard
More information about the Linuxppc-dev
mailing list