mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
media: cec-gpio: specify IRQF_NO_AUTOEN when requesting irq
Use IRQF_NO_AUTOEN rather than manually disabling the requested interrupt. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
f807d06c72
commit
3b7dab49c4
1 changed files with 1 additions and 3 deletions
|
@ -215,13 +215,11 @@ static int cec_gpio_probe(struct platform_device *pdev)
|
|||
return PTR_ERR(cec->adap);
|
||||
|
||||
ret = devm_request_irq(dev, cec->cec_irq, cec_gpio_irq_handler,
|
||||
IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
|
||||
IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING | IRQF_NO_AUTOEN,
|
||||
cec->adap->name, cec);
|
||||
if (ret)
|
||||
goto del_adap;
|
||||
|
||||
cec_gpio_disable_irq(cec->adap);
|
||||
|
||||
if (cec->hpd_gpio) {
|
||||
cec->hpd_irq = gpiod_to_irq(cec->hpd_gpio);
|
||||
ret = devm_request_threaded_irq(dev, cec->hpd_irq,
|
||||
|
|
Loading…
Reference in a new issue