Merge branch 'for-linus' of git://git.samba.org/sfrench/cifs-2.6
[deliverable/linux.git] / drivers / clocksource / tcb_clksrc.c
index a8d7ea14f1835b3d8c6d45e20937051fd79f7cbb..8bdbc45c6dad2a04c3863c753df6afb3bca54d04 100644 (file)
@@ -178,12 +178,6 @@ static irqreturn_t ch2_irq(int irq, void *handle)
        return IRQ_NONE;
 }
 
-static struct irqaction tc_irqaction = {
-       .name           = "tc_clkevt",
-       .flags          = IRQF_TIMER,
-       .handler        = ch2_irq,
-};
-
 static int __init setup_clkevents(struct atmel_tc *tc, int clk32k_divisor_idx)
 {
        int ret;
@@ -198,15 +192,16 @@ static int __init setup_clkevents(struct atmel_tc *tc, int clk32k_divisor_idx)
 
        clkevt.regs = tc->regs;
        clkevt.clk = t2_clk;
-       tc_irqaction.dev_id = &clkevt;
 
        timer_clock = clk32k_divisor_idx;
 
        clkevt.clkevt.cpumask = cpumask_of(0);
 
-       ret = setup_irq(irq, &tc_irqaction);
-       if (ret)
+       ret = request_irq(irq, ch2_irq, IRQF_TIMER, "tc_clkevt", &clkevt);
+       if (ret) {
+               clk_disable_unprepare(t2_clk);
                return ret;
+       }
 
        clockevents_config_and_register(&clkevt.clkevt, 32768, 1, 0xffff);
 
@@ -279,7 +274,7 @@ static int __init tcb_clksrc_init(void)
        int i;
        int ret;
 
-       tc = atmel_tc_alloc(CONFIG_ATMEL_TCB_CLKSRC_BLOCK, clksrc.name);
+       tc = atmel_tc_alloc(CONFIG_ATMEL_TCB_CLKSRC_BLOCK);
        if (!tc) {
                pr_debug("can't alloc TC for clocksource\n");
                return -ENODEV;
This page took 0.03001 seconds and 5 git commands to generate.