aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/sbus/char/bpp.c3
-rw-r--r--drivers/sbus/char/vfc_i2c.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/sbus/char/bpp.c b/drivers/sbus/char/bpp.c
index 87302fb14885..ccb20a6f5f36 100644
--- a/drivers/sbus/char/bpp.c
+++ b/drivers/sbus/char/bpp.c
@@ -295,8 +295,7 @@ static unsigned short get_pins(unsigned minor)
295 295
296static void snooze(unsigned long snooze_time, unsigned minor) 296static void snooze(unsigned long snooze_time, unsigned minor)
297{ 297{
298 set_current_state(TASK_UNINTERRUPTIBLE); 298 schedule_timeout_uninterruptible(snooze_time + 1);
299 schedule_timeout(snooze_time + 1);
300} 299}
301 300
302static int wait_for(unsigned short set, unsigned short clr, 301static int wait_for(unsigned short set, unsigned short clr,
diff --git a/drivers/sbus/char/vfc_i2c.c b/drivers/sbus/char/vfc_i2c.c
index 739cad9b19a1..ceec30648f4f 100644
--- a/drivers/sbus/char/vfc_i2c.c
+++ b/drivers/sbus/char/vfc_i2c.c
@@ -81,8 +81,7 @@ int vfc_pcf8584_init(struct vfc_dev *dev)
81 81
82void vfc_i2c_delay_no_busy(struct vfc_dev *dev, unsigned long usecs) 82void vfc_i2c_delay_no_busy(struct vfc_dev *dev, unsigned long usecs)
83{ 83{
84 set_current_state(TASK_UNINTERRUPTIBLE); 84 schedule_timeout_uninterruptible(usecs_to_jiffies(usecs));
85 schedule_timeout(usecs_to_jiffies(usecs));
86} 85}
87 86
88void inline vfc_i2c_delay(struct vfc_dev *dev) 87void inline vfc_i2c_delay(struct vfc_dev *dev)