| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * (C) Copyright 2009 Intel Corporation |
|---|
| 3 | 4 | * Author: Jacob Pan (jacob.jun.pan@intel.com) |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * Shared with ARM platforms, Jamie Iles, Picochip 2011 |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 8 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 9 | | - * published by the Free Software Foundation. |
|---|
| 10 | 7 | * |
|---|
| 11 | 8 | * Support for the Synopsys DesignWare APB Timers. |
|---|
| 12 | 9 | */ |
|---|
| .. | .. |
|---|
| 274 | 271 | dw_ced->ced.rating = rating; |
|---|
| 275 | 272 | dw_ced->ced.name = name; |
|---|
| 276 | 273 | |
|---|
| 277 | | - dw_ced->irqaction.name = dw_ced->ced.name; |
|---|
| 278 | | - dw_ced->irqaction.handler = dw_apb_clockevent_irq; |
|---|
| 279 | | - dw_ced->irqaction.dev_id = &dw_ced->ced; |
|---|
| 280 | | - dw_ced->irqaction.irq = irq; |
|---|
| 281 | | - dw_ced->irqaction.flags = IRQF_TIMER | IRQF_IRQPOLL | |
|---|
| 282 | | - IRQF_NOBALANCING; |
|---|
| 283 | | - |
|---|
| 284 | 274 | dw_ced->eoi = apbt_eoi; |
|---|
| 285 | | - err = setup_irq(irq, &dw_ced->irqaction); |
|---|
| 275 | + err = request_irq(irq, dw_apb_clockevent_irq, |
|---|
| 276 | + IRQF_TIMER | IRQF_IRQPOLL | IRQF_NOBALANCING, |
|---|
| 277 | + dw_ced->ced.name, &dw_ced->ced); |
|---|
| 286 | 278 | if (err) { |
|---|
| 287 | 279 | pr_err("failed to request timer irq\n"); |
|---|
| 288 | 280 | kfree(dw_ced); |
|---|