diff options
Diffstat (limited to '4.8.patch')
-rw-r--r-- | 4.8.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/4.8.patch b/4.8.patch new file mode 100644 index 000000000000..c94914cdd241 --- /dev/null +++ b/4.8.patch @@ -0,0 +1,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); |