]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/sparc/kernel/pcic.c
[PARISC] move PA perf driver over to ->compat_ioctl
[linux-2.6-omap-h63xx.git] / arch / sparc / kernel / pcic.c
index 25e31d5ec99b57defc60e5714439bb9e0d0e6ead..cccfc12802ed77aa35f68f295c8eaf7bf0eb660c 100644 (file)
@@ -143,7 +143,7 @@ static struct pcic_ca2irq pcic_i_jk[] = {
  * as several PROMs may be installed on the same physical board.
  */
 #define SN2L_INIT(name, map)   \
-  { name, map, sizeof(map)/sizeof(struct pcic_ca2irq) }
+  { name, map, ARRAY_SIZE(map) }
 
 static struct pcic_sn2list pcic_known_sysnames[] = {
        SN2L_INIT("SUNW,JavaEngine1", pcic_i_je1a),     /* JE1, PROM 2.32 */