]> git.sur5r.net Git - u-boot/commit
sf: Return bank_sel, if flash->bank_curr == bank_sel
authorJagan Teki <jteki@openedev.com>
Wed, 2 Sep 2015 06:09:46 +0000 (11:39 +0530)
committerJagan Teki <jteki@openedev.com>
Sun, 25 Oct 2015 14:47:03 +0000 (20:17 +0530)
commit3c75ade2b38ea987b79b7ef74d64301b49aa306d
tree52aedca503703fa9c4bcc9a8c44a1314bcdb825a
parent86e99b98614258de2b46bc6d58fbbf8c64a0900f
sf: Return bank_sel, if flash->bank_curr == bank_sel

If computed bank_sel is same as flash->bank_curr which is
computed at probe time, then return the bank_sel instead of zero.

Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Jagan Teki <jteki@openedev.com>
drivers/mtd/spi/sf_ops.c