mtd: spi-nor: Use write_sr for write status
authorJagan Teki <jteki@openedev.com>
Wed, 19 Aug 2015 09:56:43 +0000 (15:26 +0530)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 11 Sep 2015 22:53:48 +0000 (15:53 -0700)
commitfd7252346b2b005ea5c5f1b432a63dbb9bb05768
tree89307d71033fda7852fe8477292a97799459aed4
parenta3d22a55cda99bcd151836f39ddd329af6cb1d30
mtd: spi-nor: Use write_sr for write status

Use existing write_sr() call instead of decoding and
calling nor->write_reg separately.

Signed-off-by: Jagan Teki <jteki@openedev.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/spi-nor/spi-nor.c