diff options
author | Tom Rini <trini@konsulko.com> | 2016-01-07 12:41:57 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-01-07 12:41:57 -0500 |
commit | 67ecb84ccbfd609170978833fd09b0b87fc4b630 (patch) | |
tree | 812911dcff07cad5da276c14d9a2eeba35c977f8 /drivers/mtd | |
parent | 3861d784b1a470570a0098ac5c25d79e3073c0d9 (diff) | |
parent | 8770413f380d07439bc9ad60c6b4d108d5a9adf0 (diff) | |
download | u-boot-imx-67ecb84ccbfd609170978833fd09b0b87fc4b630.zip u-boot-imx-67ecb84ccbfd609170978833fd09b0b87fc4b630.tar.gz u-boot-imx-67ecb84ccbfd609170978833fd09b0b87fc4b630.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-spi
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/spi/spi_flash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c index 7ffa136..b7b7f00 100644 --- a/drivers/mtd/spi/spi_flash.c +++ b/drivers/mtd/spi/spi_flash.c @@ -767,8 +767,8 @@ int stm_unlock(struct spi_flash *flash, u32 ofs, size_t len) return ret; /* Cannot unlock; would unlock larger region than requested */ - if (stm_is_locked_sr(flash, status_old, ofs - flash->erase_size, - flash->erase_size)) + if (stm_is_locked_sr(flash, ofs - flash->erase_size, flash->erase_size, + status_old)) return -EINVAL; /* * Need largest pow such that: |