mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
microblaze: Replace setup_irq() by request_irq()
request_irq() is preferred over setup_irq(). Invocations of setup_irq() occur after memory allocators are ready. Per tglx[1], setup_irq() existed in olden days when allocators were not ready by the time early interrupts were initialized. Hence replace setup_irq() by request_irq(). [1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
1babf557bf
commit
9fd1a1c9b3
@ -161,13 +161,6 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id)
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
static struct irqaction timer_irqaction = {
|
||||
.handler = timer_interrupt,
|
||||
.flags = IRQF_TIMER,
|
||||
.name = "timer",
|
||||
.dev_id = &clockevent_xilinx_timer,
|
||||
};
|
||||
|
||||
static __init int xilinx_clockevent_init(void)
|
||||
{
|
||||
clockevent_xilinx_timer.mult =
|
||||
@ -309,7 +302,8 @@ static int __init xilinx_timer_init(struct device_node *timer)
|
||||
|
||||
freq_div_hz = timer_clock_freq / HZ;
|
||||
|
||||
ret = setup_irq(irq, &timer_irqaction);
|
||||
ret = request_irq(irq, timer_interrupt, IRQF_TIMER, "timer",
|
||||
&clockevent_xilinx_timer);
|
||||
if (ret) {
|
||||
pr_err("Failed to setup IRQ");
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user