mfd: fsl-imx25: Set irq handler and data in one go
Replace the two separate calls for setting the irq handler and data with a single irq_set_chained_handler_and_data() call. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
8275b77a15
commit
f132bc3f30
|
@ -84,8 +84,7 @@ static int mx25_tsadc_setup_irq(struct platform_device *pdev,
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
irq_set_chained_handler(irq, mx25_tsadc_irq_handler);
|
||||
irq_set_handler_data(irq, tsadc);
|
||||
irq_set_chained_handler_and_data(irq, mx25_tsadc_irq_handler, tsadc);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue