]> Git Repo - linux.git/blobdiff - drivers/clocksource/timer-vf-pit.c
clocksource: Replace setup_irq() by request_irq()
[linux.git] / drivers / clocksource / timer-vf-pit.c
index fef0bb4e0c8c3957581d73bb04285fba2725a973..7ad4a8b008c2a437ffc1570bf6d978a741fd528b 100644 (file)
@@ -123,19 +123,13 @@ static struct clock_event_device clockevent_pit = {
        .rating         = 300,
 };
 
-static struct irqaction pit_timer_irq = {
-       .name           = "VF pit timer",
-       .flags          = IRQF_TIMER | IRQF_IRQPOLL,
-       .handler        = pit_timer_interrupt,
-       .dev_id         = &clockevent_pit,
-};
-
 static int __init pit_clockevent_init(unsigned long rate, int irq)
 {
        __raw_writel(0, clkevt_base + PITTCTRL);
        __raw_writel(PITTFLG_TIF, clkevt_base + PITTFLG);
 
-       BUG_ON(setup_irq(irq, &pit_timer_irq));
+       BUG_ON(request_irq(irq, pit_timer_interrupt, IRQF_TIMER | IRQF_IRQPOLL,
+                          "VF pit timer", &clockevent_pit);
 
        clockevent_pit.cpumask = cpumask_of(0);
        clockevent_pit.irq = irq;
This page took 0.03292 seconds and 4 git commands to generate.