mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 07:04:44 +00:00
iio: adc: Add check for devm_request_threaded_irq
[ Upstream commitb30537a4ce
] As the potential failure of the devm_request_threaded_irq(), it should be better to check the return value and return error if fails. Fixes:fa659a40b8
("iio: adc: twl6030-gpadc: Use devm_* API family") Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn> Link: https://lore.kernel.org/r/20220224062849.3280966-1-jiasheng@iscas.ac.cn Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
3e843460fb
commit
82546d91d5
1 changed files with 2 additions and 0 deletions
|
@ -911,6 +911,8 @@ static int twl6030_gpadc_probe(struct platform_device *pdev)
|
|||
ret = devm_request_threaded_irq(dev, irq, NULL,
|
||||
twl6030_gpadc_irq_handler,
|
||||
IRQF_ONESHOT, "twl6030_gpadc", indio_dev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = twl6030_gpadc_enable_irq(TWL6030_GPADC_RT_SW1_EOC_MASK);
|
||||
if (ret < 0) {
|
||||
|
|
Loading…
Reference in a new issue