[PATCH] stir4200: use set_current_state() From: Nishanth Aravamudan Use set_current_state() instead of direct assignment of current->state. Signed-off-by: Nishanth Aravamudan Signed-off-by: Maximilian Attems Signed-off-by: Domen Puncer Signed-off-by: Alexey Dobriyan Index: linux-kj/drivers/net/irda/stir4200.c =================================================================== --- linux-kj.orig/drivers/net/irda/stir4200.c +++ linux-kj/drivers/net/irda/stir4200.c @@ -679,7 +679,7 @@ static void turnaround_delay(const struc ticks = us / (1000000 / HZ); if (ticks > 0) { - current->state = TASK_INTERRUPTIBLE; + set_current_state(TASK_INTERRUPTIBLE); schedule_timeout(1 + ticks); } else udelay(us);