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:
Martin Kaiser 2017-09-12 10:34:15 +02:00 committed by Lee Jones
parent 8275b77a15
commit f132bc3f30
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}