From 38178c059c3bea8bf2c95115fb753b55319a37f6 Mon Sep 17 00:00:00 2001 From: Trent Piepho Date: Sat, 15 Jul 2006 09:30:46 -0300 Subject: Add compat.h code for schedule_timeout_interruptible() From: Trent Piepho Add a static inline version of schedule_timeout_interruptible(), it's only two lines, to compat.h. This will make bt866 and ks0127 compile with pre 2.6.14 kernels. Remove #if/#else code from msp3400, saa7134-tvaudio, and vivi that used to handle this. Signed-off-by: Trent Piepho --- linux/drivers/media/video/msp3400-driver.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'linux/drivers/media/video/msp3400-driver.c') diff --git a/linux/drivers/media/video/msp3400-driver.c b/linux/drivers/media/video/msp3400-driver.c index 5e209a36b..f3ddd462c 100644 --- a/linux/drivers/media/video/msp3400-driver.c +++ b/linux/drivers/media/video/msp3400-driver.c @@ -391,13 +391,8 @@ int msp_sleep(struct msp_state *state, int timeout) set_current_state(TASK_INTERRUPTIBLE); schedule(); } else { -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,13) schedule_timeout_interruptible (msecs_to_jiffies(timeout)); -#else - set_current_state(TASK_INTERRUPTIBLE); - schedule_timeout(msecs_to_jiffies(timeout)); -#endif } } #if (LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,12)) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)) -- cgit v1.2.3