diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2018-01-23 17:14:55 +0100 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2018-01-24 12:03:43 +0530 |
commit | 48263504c8d501678acaa90c075f3f7cda17c316 (patch) | |
tree | 3236bf8890e2258f1f9af5e42ab42aac6768bb3b /drivers/mtd/pic32_flash.c | |
parent | 91fe458bbfcd6485b9413cf398bbfeb6947861ec (diff) | |
download | u-boot-48263504c8d501678acaa90c075f3f7cda17c316.zip u-boot-48263504c8d501678acaa90c075f3f7cda17c316.tar.gz u-boot-48263504c8d501678acaa90c075f3f7cda17c316.tar.bz2 |
wait_bit: use wait_for_bit_le32 and remove wait_for_bit
wait_for_bit callers use the 32 bit LE version
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'drivers/mtd/pic32_flash.c')
-rw-r--r-- | drivers/mtd/pic32_flash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/pic32_flash.c b/drivers/mtd/pic32_flash.c index e1a8d3b..8bbf2fa 100644 --- a/drivers/mtd/pic32_flash.c +++ b/drivers/mtd/pic32_flash.c @@ -66,8 +66,8 @@ static inline void flash_initiate_operation(u32 nvmop) static int flash_wait_till_busy(const char *func, ulong timeout) { - int ret = wait_for_bit(__func__, &nvm_regs_p->ctrl.raw, - NVM_WR, false, timeout, false); + int ret = wait_for_bit_le32(&nvm_regs_p->ctrl.raw, + NVM_WR, false, timeout, false); return ret ? ERR_TIMOUT : ERR_OK; } |