summarylogtreecommitdiffstats
path: root/4.8.patch
blob: c94914cdd241c7b84b38c82ea379c8bac6865700 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/smi2021_v4l2.c b/smi2021_v4l2.c
index 9d8fa3d..a72c29a 100644
--- a/smi2021_v4l2.c
+++ b/smi2021_v4l2.c
@@ -194,7 +194,13 @@ static int queue_setup(struct vb2_queue *vq,
 			const void *parg,
 #endif
 			unsigned int *nbuffers, unsigned int *nplanes,
-			unsigned int sizes[], void *alloc_ctxs[])
+			unsigned int sizes[],
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0)
+			void *alloc_ctxs[]
+#else
+			struct device *alloc_devs[]
+#endif
+			)
 {
 	struct smi2021 *smi2021 = vb2_get_drv_priv(vq);
 	*nbuffers = clamp_t(unsigned int, *nbuffers, 4, 16);