Skip to content

Commit 29d4ff5

Browse files
Sebastian Andrzej SiewiorThomas Gleixner
authored andcommitted
bus: fsl-mc: Use default primary handler
There is no added value in dprc_irq0_handler() compared to irq_default_primary_handler(). Use the default primary interrupt handler by specifying NULL. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com> Link: https://patch.msgid.link/20260128095540.863589-6-bigeasy@linutronix.de
1 parent 03843d9 commit 29d4ff5

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

drivers/bus/fsl-mc/dprc-driver.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -380,17 +380,6 @@ int dprc_scan_container(struct fsl_mc_device *mc_bus_dev,
380380
}
381381
EXPORT_SYMBOL_GPL(dprc_scan_container);
382382

383-
/**
384-
* dprc_irq0_handler - Regular ISR for DPRC interrupt 0
385-
*
386-
* @irq_num: IRQ number of the interrupt being handled
387-
* @arg: Pointer to device structure
388-
*/
389-
static irqreturn_t dprc_irq0_handler(int irq_num, void *arg)
390-
{
391-
return IRQ_WAKE_THREAD;
392-
}
393-
394383
/**
395384
* dprc_irq0_handler_thread - Handler thread function for DPRC interrupt 0
396385
*
@@ -527,7 +516,7 @@ static int register_dprc_irq_handler(struct fsl_mc_device *mc_dev)
527516
*/
528517
error = devm_request_threaded_irq(&mc_dev->dev,
529518
irq->virq,
530-
dprc_irq0_handler,
519+
NULL,
531520
dprc_irq0_handler_thread,
532521
IRQF_NO_SUSPEND | IRQF_ONESHOT,
533522
dev_name(&mc_dev->dev),

0 commit comments

Comments
 (0)