From: Brian Norris Date: Wed, 5 Nov 2014 10:29:03 +0000 (-0800) Subject: mtd: spi-nor: factor out write_enable() for erase commands X-Git-Tag: omap-for-v3.19/fixes-rc1~56^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05241aead9b98c28476f74e7e1c5ce480ef40ac1;p=pandora-kernel.git mtd: spi-nor: factor out write_enable() for erase commands write_enable() was being duplicated to both m25p80.c and fsl-quadspi.c. But this should be handled within the spi-nor abstraction layer. At the same time, let's add write_disable() after erasing, so we don't leave the flash in a write-enabled state afterward. Signed-off-by: Brian Norris Acked-by: Huang Shijie --- Reading git-diff-tree failed