From be80b76533c8db5af8ef3464c84d56c45767ed60 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Mon, 6 Feb 2006 13:59:37 -0200 Subject: sem2mutex: drivers/media/, #2 Semaphore to mutex conversion. The conversion was generated via scripts, and the result was validated automatically via a script as well. Kernel-sync from patch 3318b Signed-off-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab --- linux/drivers/media/dvb/bt8xx/bt878.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'linux/drivers/media/dvb/bt8xx/bt878.h') diff --git a/linux/drivers/media/dvb/bt8xx/bt878.h b/linux/drivers/media/dvb/bt8xx/bt878.h index 9faf93770..af93f78ee 100644 --- a/linux/drivers/media/dvb/bt8xx/bt878.h +++ b/linux/drivers/media/dvb/bt8xx/bt878.h @@ -25,6 +25,11 @@ #include #include #include +#include "compat.h" +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) +#include +#endif + #include "bt848.h" #include "bttv.h" @@ -108,7 +113,11 @@ struct cards { extern int bt878_num; struct bt878 { - struct semaphore gpio_lock; +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) + struct mutex gpio_lock; +#else + struct semaphore gpio_lock; +#endif unsigned int nr; unsigned int bttv_nr; struct i2c_adapter *adapter; -- cgit v1.2.3