altera_qspi: initialize instr.mtd in flash_erase
authorThomas Chou <thomas@wytron.com.tw>
Fri, 18 Dec 2015 13:35:08 +0000 (21:35 +0800)
committerThomas Chou <thomas@wytron.com.tw>
Sat, 19 Dec 2015 01:51:19 +0000 (09:51 +0800)
commit1c0e84ca829a09948a61107744402296566aa076
treecbc0e973020a46ce279c37da9eefc4e2a05f7d3b
parent11b35d557b3c9e66090925e2369161cfe3690db1
altera_qspi: initialize instr.mtd in flash_erase

Initialize instr.mtd in flash_erase(). This fixes the system
hang issue when CONFIG_MTD_PARTITIONS is selected.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Acked-by: Marek Vasut <marex@denx.de>
drivers/mtd/altera_qspi.c