]> git.baikalelectronics.ru Git - kernel.git/commit
[media] radio-si470x-i2c: Pass the IRQF_ONESHOT flag
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 1 Jun 2015 17:14:07 +0000 (14:14 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 6 Jun 2015 10:34:08 +0000 (07:34 -0300)
commit265854cd7ba3401e7b8a0c0ba87c4a59d3c30521
tree2b2e73f79b7ee9e8ff78f1df3ce41aad2e081356
parentad49ecdf9cef7da1cb3b5ad735f04fe37b3be83b
[media] radio-si470x-i2c: Pass the IRQF_ONESHOT flag

Since commit 4df38d498ad6 ("genirq: Reject bogus threaded irq requests")
threaded IRQs without a primary handler need to be requested with
IRQF_ONESHOT, otherwise the request will fail.

So pass the IRQF_ONESHOT flag in this case.

The semantic patch that makes this change is available
in scripts/coccinelle/misc/irqf_oneshot.cocci.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/radio/si470x/radio-si470x-i2c.c