[MIPS] IP27: Fix build error.
authorRalf Baechle <ralf@linux-mips.org>
Thu, 1 Nov 2007 12:20:51 +0000 (12:20 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 2 Nov 2007 16:13:47 +0000 (16:13 +0000)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/sgi-ip27/ip27-timer.c

index dc59c3b708edc545d583b2ec3b0b27da3e67274c..08d45369be45c40a4895a00c9c831e109de9fd7f 100644 (file)
@@ -131,7 +131,7 @@ static struct irq_chip rt_irq_type = {
 static int rt_next_event(unsigned long delta, struct clock_event_device *evt)
 {
        unsigned int cpu = smp_processor_id();
-       int slice putoslice(cpu);
+       int slice = cputoslice(cpu);
        unsigned long cnt;
 
        cnt = LOCAL_HUB_L(PI_RT_COUNT);
@@ -169,7 +169,7 @@ static irqreturn_t hub_rt_counter_handler(int irq, void *dev_id)
        /*
         * Ack
         */
-       LOCAL_HUB_S(PI_RT_PEND_A + PI_COUNT_OFFSET * slice, cnt);
+       LOCAL_HUB_S(PI_RT_PEND_A + PI_COUNT_OFFSET * slice, 0);
        cd->event_handler(cd);
 
        return IRQ_HANDLED;