NOR/CFI: fix order of arguments check
commitc9e58238c3b1ae181a7d54bc5255ef98771493c2
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 14 Apr 2010 08:32:30 +0000 (14 16:32 +0800)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Thu, 15 Apr 2010 17:19:46 +0000 (15 19:19 +0200)
tree0bf1c99958bc2bd3d73c3bcd6ca17eef5936ef40
parentee139164114460d5c4c1a720e28740a7dceca712
NOR/CFI: fix order of arguments check

Syntax of "flash bank" command requires:
- chip_width as CMD_ARGV[3]
- bus_width  as CMD_ARGV[4]
Actual code swaps the arguments.
Bug has no run time impact since wrong variables
are only used to check value and both are checked
against same constraint.

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
src/flash/nor/cfi.c