Commit 8f983d6f authored by Randy Dunlap's avatar Randy Dunlap Committed by David S. Miller

[COSA]: schedule_timeout() sets curr_state, from Alexey Dobriyan <adobriyan@mail.ru>.

parent 52b8eb7f
...@@ -519,7 +519,6 @@ static int cosa_probe(int base, int irq, int dma) ...@@ -519,7 +519,6 @@ static int cosa_probe(int base, int irq, int dma)
current->state = TASK_INTERRUPTIBLE; current->state = TASK_INTERRUPTIBLE;
cosa_putstatus(cosa, SR_TX_INT_ENA); cosa_putstatus(cosa, SR_TX_INT_ENA);
schedule_timeout(30); schedule_timeout(30);
current->state = TASK_RUNNING;
irq = probe_irq_off(irqs); irq = probe_irq_off(irqs);
/* Disable all IRQs from the card */ /* Disable all IRQs from the card */
cosa_putstatus(cosa, 0); cosa_putstatus(cosa, 0);
...@@ -1532,7 +1531,6 @@ static int cosa_reset_and_read_id(struct cosa_data *cosa, char *idstring) ...@@ -1532,7 +1531,6 @@ static int cosa_reset_and_read_id(struct cosa_data *cosa, char *idstring)
#ifdef MODULE #ifdef MODULE
current->state = TASK_INTERRUPTIBLE; current->state = TASK_INTERRUPTIBLE;
schedule_timeout(HZ/2); schedule_timeout(HZ/2);
current->state = TASK_RUNNING;
#else #else
udelay(5*100000); udelay(5*100000);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment