mtd/chips: add missing set_current_state() to cfi_{amdstd,staa}_sync()
[pandora-kernel.git] / drivers / mtd / chips / cfi_cmdset_0020.c
index b344ff8..492e2ab 100644 (file)
@@ -1015,6 +1015,7 @@ static void cfi_staa_sync (struct mtd_info *mtd)
 
                default:
                        /* Not an idle state */
+                       set_current_state(TASK_UNINTERRUPTIBLE);
                        add_wait_queue(&chip->wq, &wait);
 
                        spin_unlock_bh(chip->mutex);