summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_frontend.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
index a7aa25c12..61b9f291a 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
@@ -25,7 +25,7 @@
#include <asm/processor.h>
#include <asm/semaphore.h>
#include <asm/errno.h>
-#include <asm/string.h>
+#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/wait.h>
@@ -436,6 +436,7 @@ int dvb_frontend_thread (void *data)
fe->frontend.i2c->adapter->num, fe->frontend.i2c->id);
kernel_thread_setup (name);
+
fe->thread = current;
fe->lost_sync_count = -1;
@@ -505,7 +506,7 @@ void dvb_frontend_stop (struct dvb_frontend_data *fe)
while (fe->thread) {
fe->exit = 1;
wake_up_interruptible (&fe->wait_queue);
- current->state = TASK_INTERRUPTIBLE;
+ set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout (5);
if (signal_pending(current))
break;