MIPS: IP22: Use a generic method for irq statistics
commitc313bbf03c19105d1499865c5c3fec9c2caa6b0c
authorDmitri Vorobiev <dmitri.vorobiev@movial.com>
Fri, 27 Mar 2009 11:39:11 +0000 (27 13:39 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 27 Mar 2009 13:27:36 +0000 (27 14:27 +0100)
tree6206fb84ac7e88e54b6dfca5bcdfb5d451812464
parent4e16098f1726896924ec5ad8cc769f9fb2da9058
MIPS: IP22: Use a generic method for irq statistics

The structure 'struct kernel_stat' defines the 'irqs' array as its field
only when CONFIG_GENERIC_HARDIRQS is not set. However, the ip22 code makes
use of this field unconditionally. As the result, the following build error
is produced:

  CC      arch/mips/sgi-ip22/ip22-int.o
arch/mips/sgi-ip22/ip22-int.c: In function 'indy_buserror_irq':
arch/mips/sgi-ip22/ip22-int.c:158: error: 'struct kernel_stat' has no
member named 'irqs'
make[1]: *** [arch/mips/sgi-ip22/ip22-int.o] Error 1
make: *** [arch/mips/sgi-ip22] Error 2

This patch fixes the build error by using the generic method for the irq
statistics.

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/sgi-ip22/ip22-int.c
arch/mips/sgi-ip22/ip22-time.c