diff mbox series

media: adv7604 added include of linux/interrupt.h

Message ID 20181126220109.29743-1-jasmin@anw.at (mailing list archive)
State New, archived
Headers show
Series media: adv7604 added include of linux/interrupt.h | expand

Commit Message

Jasmin J. Nov. 26, 2018, 10:01 p.m. UTC
From: Jasmin Jessich <jasmin@anw.at>

On older Kernels (prior to 4.15) irqreturn_t and devm_request_threaded_irq
is not defined when compiling adv7604.c. It seems more recent Kernels
include it via another header which is included by adv7604.c.
Now we include linux/interrupt.h explicitly to get the type also defined
for Kernels prior to 4.15.

Signed-off-by: Jasmin Jessich <jasmin@anw.at>
---
 drivers/media/i2c/adv7604.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c
index 43d27edac636..dfb4400f0445 100644
--- a/drivers/media/i2c/adv7604.c
+++ b/drivers/media/i2c/adv7604.c
@@ -27,6 +27,7 @@ 
 #include <linux/videodev2.h>
 #include <linux/workqueue.h>
 #include <linux/regmap.h>
+#include <linux/interrupt.h>
 
 #include <media/i2c/adv7604.h>
 #include <media/cec.h>