]> git.sur5r.net Git - u-boot/commit
spi: spi_flash: Fix the arguments of stm_is_locked_sr()
authorFabio Estevam <fabio.estevam@nxp.com>
Wed, 6 Jan 2016 00:24:39 +0000 (22:24 -0200)
committerJagan Teki <jteki@openedev.com>
Thu, 7 Jan 2016 14:59:33 +0000 (20:29 +0530)
commit509215835944eb7ebd4b690d3f1b8fec7d78991d
tree03d0af31c7162d2f194c064cb542ca1b80511823
parent78680314c53a95c0bb25e942662979843b60d7b9
spi: spi_flash: Fix the arguments of stm_is_locked_sr()

stm_is_locked_sr() takes the status register (SR) value as the last
parameter, not the second.

Based on a patch from Brian Norris for the linux kernel:
http://git.infradead.org/linux-mtd.git/commit/a32d5b726ff8cf32bf491522b0ac8ae2545a063e

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Jagan Teki <jteki@openedev.com>
drivers/mtd/spi/spi_flash.c