]> err.no Git - linux-2.6/blobdiff - arch/v850/kernel/fpga85e2c.c
UML: make several more things static
[linux-2.6] / arch / v850 / kernel / fpga85e2c.c
index cb04a6954ccbc5d99b639d119bc36a50fa6f96ca..ab9cf16a85c8778808f27d67bbcc1afe35638593 100644 (file)
@@ -138,7 +138,7 @@ struct v850e_intc_irq_init irq_inits[] = {
        { "RPU", IRQ_RPU(0),    IRQ_RPU_NUM,    1, 6 },
        { 0 }
 };
-#define NUM_IRQ_INITS ((sizeof irq_inits / sizeof irq_inits[0]) - 1)
+#define NUM_IRQ_INITS (ARRAY_SIZE(irq_inits) - 1)
 
 struct hw_interrupt_type hw_itypes[NUM_IRQ_INITS];
 
@@ -160,5 +160,8 @@ static void make_reg_snap (int irq, void *dummy, struct pt_regs *regs)
 
 static int reg_snap_dev_id;
 static struct irqaction reg_snap_action = {
-       make_reg_snap, 0, CPU_MASK_NONE, "reg_snap", &reg_snap_dev_id, 0
+       .handler = make_reg_snap,
+       .mask = CPU_MASK_NONE,
+       .name = "reg_snap",
+       .dev_id = &reg_snap_dev_id,
 };