summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorMartin Kaiser <martin@kaiser.cx>2017-09-12 10:34:15 +0200
committerLee Jones <lee.jones@linaro.org>2017-10-13 11:42:59 +0200
commitf132bc3f301efad6762d62a2aa2ad7b0caa8cbf0 (patch)
treec4f1ecf5f138b46f49589647ec6e4890e5df1b02 /drivers/mfd
parentmfd: rts5249: Add support for RTS5250S power saving (diff)
downloadlinux-f132bc3f301efad6762d62a2aa2ad7b0caa8cbf0.tar.xz
linux-f132bc3f301efad6762d62a2aa2ad7b0caa8cbf0.zip
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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/fsl-imx25-tsadc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mfd/fsl-imx25-tsadc.c b/drivers/mfd/fsl-imx25-tsadc.c
index b3767c3141e5..14189efd70d0 100644
--- a/drivers/mfd/fsl-imx25-tsadc.c
+++ b/drivers/mfd/fsl-imx25-tsadc.c
@@ -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;
}