summaryrefslogtreecommitdiff
path: root/linux/drivers/media/radio/radio-si470x.c
diff options
context:
space:
mode:
authorDouglas Schilling Landgraf <dougsland@gmail.com>2008-02-14 00:13:36 -0200
committerDouglas Schilling Landgraf <dougsland@gmail.com>2008-02-14 00:13:36 -0200
commit792ee989bae4e2a54629b2b819619163297648ee (patch)
tree519399d44a0a57c32b6568b26d45d7a3e8f38145 /linux/drivers/media/radio/radio-si470x.c
parent14709eca1644316f1fb628e14525e75dac44c591 (diff)
downloadmediapointer-dvb-s2-792ee989bae4e2a54629b2b819619163297648ee.tar.gz
mediapointer-dvb-s2-792ee989bae4e2a54629b2b819619163297648ee.tar.bz2
radio-si470x: Add kernel validation to work queue
From: Douglas Schilling Landgraf <dougsland@gmail.com> Added kernel validation to support work_struct/delayed_work. (kernel < 2.6.20) Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
Diffstat (limited to 'linux/drivers/media/radio/radio-si470x.c')
-rw-r--r--linux/drivers/media/radio/radio-si470x.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drivers/media/radio/radio-si470x.c b/linux/drivers/media/radio/radio-si470x.c
index d7fe70a00..e999b2fc3 100644
--- a/linux/drivers/media/radio/radio-si470x.c
+++ b/linux/drivers/media/radio/radio-si470x.c
@@ -432,7 +432,12 @@ struct si470x_device {
unsigned short registers[RADIO_REGISTER_NUM];
/* RDS receive buffer */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)
+ struct work_struct work;
+#else
struct delayed_work work;
+#endif
+
wait_queue_head_t read_queue;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 16)
struct mutex lock; /* buffer locking */