mtd: spi-nor: move "wait-till-ready" checks into erase/write functions
authorBrian Norris <computersforpeace@gmail.com>
Thu, 7 Aug 2014 01:16:57 +0000 (18:16 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 5 Nov 2014 10:02:24 +0000 (02:02 -0800)
commitdfa9c0cba4ea20e766bbb4f89152b05d00ab9ab3
tree79fb4ce0df9211fbe3e97695d04f1870f1916252
parent1d61dcb3ff5e4713d242a539947d8dd650ab3014
mtd: spi-nor: move "wait-till-ready" checks into erase/write functions

We shouldn't have *every* function checking if a previous write is
complete; this should be done synchronously after each write/erase.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/mtd/spi-nor/spi-nor.c