diff options
Diffstat (limited to 'drivers/macintosh/adb.c')
-rw-r--r-- | drivers/macintosh/adb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/adb.c index 75049e765191..b026896206ca 100644 --- a/drivers/macintosh/adb.c +++ b/drivers/macintosh/adb.c | |||
@@ -710,7 +710,7 @@ static ssize_t adb_read(struct file *file, char __user *buf, | |||
710 | req = NULL; | 710 | req = NULL; |
711 | spin_lock_irqsave(&state->lock, flags); | 711 | spin_lock_irqsave(&state->lock, flags); |
712 | add_wait_queue(&state->wait_queue, &wait); | 712 | add_wait_queue(&state->wait_queue, &wait); |
713 | current->state = TASK_INTERRUPTIBLE; | 713 | set_current_state(TASK_INTERRUPTIBLE); |
714 | 714 | ||
715 | for (;;) { | 715 | for (;;) { |
716 | req = state->completed; | 716 | req = state->completed; |
@@ -734,7 +734,7 @@ static ssize_t adb_read(struct file *file, char __user *buf, | |||
734 | spin_lock_irqsave(&state->lock, flags); | 734 | spin_lock_irqsave(&state->lock, flags); |
735 | } | 735 | } |
736 | 736 | ||
737 | current->state = TASK_RUNNING; | 737 | set_current_state(TASK_RUNNING); |
738 | remove_wait_queue(&state->wait_queue, &wait); | 738 | remove_wait_queue(&state->wait_queue, &wait); |
739 | spin_unlock_irqrestore(&state->lock, flags); | 739 | spin_unlock_irqrestore(&state->lock, flags); |
740 | 740 | ||