iio: mxs-lradc: Propagate the real error code on platform_get_irq() failure
Subsystems (4)
Fabio Estevam
reviewerPATCH 1/1 iio: mxs-lradc: Propagate the real error code on platform_get_irq() failure
From: Fabio Estevam <[email protected]>
No need to return a 'fake' return value on platform_get_irq() failure.
Just return the error code itself instead.
--- drivers/staging/iio/adc/mxs-lradc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/adc/mxs-lradc.c +1 -1
@@ -1558,7 +1558,7 @@ static int mxs_lradc_probe(struct platform_device *pdev)for (i =0 ; i < of_cfg->irq_count; i++) { lradc->irq[i] =platform_get_irq (pdev, i);if (lradc->irq[i] <0 ) -return -EINVAL ; +return lradc->irq[i]; ret = devm_request_irq(dev, lradc->irq[i], mxs_lradc_handle_irq, 0,
Signature · 1 line
1.8.1.2
Quoted 7 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
No need to return a 'fake' return value on
platform_get_irq()failure.Just return the error code itself instead.
Signed-off-by Fabio Estevam <[email protected]>
Best regards,
Marek Vasut
Quoted 11 lines · Marek Vasut
Quoted 7 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
No need to return a 'fake' return value on
platform_get_irq()failure.Just return the error code itself instead.
Signed-off-by Fabio Estevam <[email protected]>Acked-by Marek Vasut <[email protected]>
Applied to the togreg branch of iio.git
Thanks,
Quoted 7 lines
Best regards,
Marek Vasut
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html