]> git.karo-electronics.de Git - mv-sheeva.git/commit
mtd: nand: fix build failure and incorrect return from omap_wait()
authorvimal singh <vimalsingh@ti.com>
Sat, 27 Jun 2009 05:37:06 +0000 (11:07 +0530)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 28 Jun 2009 09:24:13 +0000 (10:24 +0100)
commitc276aca46d26aa2347320096f8ecdf5016795c14
treef14661eddba0e90f6c61d357ece4866e79177f78
parent70ec3bb8ea3f8c55b255f41d122c7d4d8c0d00b4
mtd: nand: fix build failure and incorrect return from omap_wait()

We need to include jiffies.h manually in some cases, and the status
returned from omap_wait() was broken in two separate ways.

Also add cond_resched() to the loop.

Signed-off-by: Vimal Singh <vimalsingh@ti.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/omap2.c