| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2007-2009 ST-Ericsson AB |
|---|
| 3 | | - * License terms: GNU General Public License (GPL) version 2 |
|---|
| 4 | 4 | * Timer COH 901 328, runs the OS timer interrupt. |
|---|
| 5 | 5 | * Author: Linus Walleij <linus.walleij@stericsson.com> |
|---|
| 6 | 6 | */ |
|---|
| .. | .. |
|---|
| 330 | 330 | return IRQ_HANDLED; |
|---|
| 331 | 331 | } |
|---|
| 332 | 332 | |
|---|
| 333 | | -static struct irqaction u300_timer_irq = { |
|---|
| 334 | | - .name = "U300 Timer Tick", |
|---|
| 335 | | - .flags = IRQF_TIMER | IRQF_IRQPOLL, |
|---|
| 336 | | - .handler = u300_timer_interrupt, |
|---|
| 337 | | -}; |
|---|
| 338 | | - |
|---|
| 339 | 333 | /* |
|---|
| 340 | 334 | * Override the global weak sched_clock symbol with this |
|---|
| 341 | 335 | * local implementation which uses the clocksource to get some |
|---|
| .. | .. |
|---|
| 420 | 414 | u300_timer_base + U300_TIMER_APP_RGPT1); |
|---|
| 421 | 415 | |
|---|
| 422 | 416 | /* Set up the IRQ handler */ |
|---|
| 423 | | - ret = setup_irq(irq, &u300_timer_irq); |
|---|
| 417 | + ret = request_irq(irq, u300_timer_interrupt, |
|---|
| 418 | + IRQF_TIMER | IRQF_IRQPOLL, "U300 Timer Tick", NULL); |
|---|
| 424 | 419 | if (ret) |
|---|
| 425 | 420 | return ret; |
|---|
| 426 | 421 | |
|---|