diff options
Diffstat (limited to 'sound/core/init.c')
-rw-r--r-- | sound/core/init.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sound/core/init.c b/sound/core/init.c index 5bb8a8b23d51..39ed2e5bb0af 100644 --- a/sound/core/init.c +++ b/sound/core/init.c | |||
@@ -722,13 +722,12 @@ int snd_card_file_remove(struct snd_card *card, struct file *file) | |||
722 | * snd_power_wait - wait until the power-state is changed. | 722 | * snd_power_wait - wait until the power-state is changed. |
723 | * @card: soundcard structure | 723 | * @card: soundcard structure |
724 | * @power_state: expected power state | 724 | * @power_state: expected power state |
725 | * @file: file structure for the O_NONBLOCK check (optional) | ||
726 | * | 725 | * |
727 | * Waits until the power-state is changed. | 726 | * Waits until the power-state is changed. |
728 | * | 727 | * |
729 | * Note: the power lock must be active before call. | 728 | * Note: the power lock must be active before call. |
730 | */ | 729 | */ |
731 | int snd_power_wait(struct snd_card *card, unsigned int power_state, struct file *file) | 730 | int snd_power_wait(struct snd_card *card, unsigned int power_state) |
732 | { | 731 | { |
733 | wait_queue_t wait; | 732 | wait_queue_t wait; |
734 | int result = 0; | 733 | int result = 0; |
@@ -745,12 +744,6 @@ int snd_power_wait(struct snd_card *card, unsigned int power_state, struct file | |||
745 | } | 744 | } |
746 | if (snd_power_get_state(card) == power_state) | 745 | if (snd_power_get_state(card) == power_state) |
747 | break; | 746 | break; |
748 | #if 0 /* block all devices */ | ||
749 | if (file && (file->f_flags & O_NONBLOCK)) { | ||
750 | result = -EAGAIN; | ||
751 | break; | ||
752 | } | ||
753 | #endif | ||
754 | set_current_state(TASK_UNINTERRUPTIBLE); | 747 | set_current_state(TASK_UNINTERRUPTIBLE); |
755 | snd_power_unlock(card); | 748 | snd_power_unlock(card); |
756 | schedule_timeout(30 * HZ); | 749 | schedule_timeout(30 * HZ); |