mtd, spi: Check if flash pointer is used
authorHeiko Schocher <hs@denx.de>
Mon, 27 Apr 2015 05:42:07 +0000 (07:42 +0200)
committerJagan Teki <jteki@openedev.com>
Mon, 29 Jun 2015 19:10:11 +0000 (00:40 +0530)
commit8ee81b7f9b675cb675119a998b04ca843d24ddcd
tree7b262b3a83c9d92354f24abdb87e9f26ee497f08
parent2ec1a4059cd0421653b19979a046e9fb7296652f
mtd, spi: Check if flash pointer is used

If flash pointer is used free it, before probing a new
flash and storing it in flash.

Signed-off-by: Heiko Schocher <hs@denx.de>
Tested-by: Jagannadh Teki <jteki@openedev.com>
Reviewed-by: Jagannadh Teki <jteki@openedev.com>
common/cmd_sf.c