mfd: fsl-imx25: Set irq handler and data in one go
authorMartin Kaiser <martin@kaiser.cx>
Tue, 12 Sep 2017 08:34:15 +0000 (10:34 +0200)
committerLee Jones <lee.jones@linaro.org>
Fri, 13 Oct 2017 09:42:59 +0000 (10:42 +0100)
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>
drivers/mfd/fsl-imx25-tsadc.c

index b3767c3141e58a0fd9af028ced1ad13f67726c77..14189efd70d099e0aaf0b225da05d51c407c5d84 100644 (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;
 }