diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-03-20 14:09:31 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-03-20 14:09:31 -0300 |
commit | f4421c541bfe09f509ce9bc274bf7b4c22977372 (patch) | |
tree | 815969d5f02c40137a62f406872522544d126fce /linux/drivers/media/video/cpia2/cpia2.h | |
parent | 48b9cb94f837c31462aab66d20c9856d0d3127ff (diff) | |
download | mediapointer-dvb-s2-f4421c541bfe09f509ce9bc274bf7b4c22977372.tar.gz mediapointer-dvb-s2-f4421c541bfe09f509ce9bc274bf7b4c22977372.tar.bz2 |
Make cpia2 compile with older kernel versions
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/cpia2/cpia2.h')
-rw-r--r-- | linux/drivers/media/video/cpia2/cpia2.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cpia2/cpia2.h b/linux/drivers/media/video/cpia2/cpia2.h index 9c4d31c42..a53056c82 100644 --- a/linux/drivers/media/video/cpia2/cpia2.h +++ b/linux/drivers/media/video/cpia2/cpia2.h @@ -383,7 +383,11 @@ struct cpia2_fh { struct camera_data { /* locks */ +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) struct mutex busy_lock; /* guard against SMP multithreading */ +#else + struct semaphore busy_lock; +#endif struct v4l2_prio_state prio; /* camera status */ |