/* onenand_interrupt_wait -  wait until the command is done  */
static int onenand_interrupt_wait(struct mtd_info *mtd, int state)
/* onenand_interrupt_wait -  wait until the command is done  */
static int onenand_interrupt_wait(struct mtd_info *mtd, int state)
{
	struct onenand_chip *this = mtd->priv;
	wait_for_completion(&this->complete);
	return onenand_wait(mtd, state);
}