OSDN Git Service

mtd: nand: denali: simplify multi device fixup code
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 22 Mar 2017 20:07:21 +0000 (05:07 +0900)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 28 Mar 2017 12:18:03 +0000 (14:18 +0200)
commite93c1640e0387ab55b98b4e04600050f2beceac1
tree0cb1e85b5d2553f12ccb041d83771181c2241b1e
parent6da27b469317435b776114649439e32384165aa5
mtd: nand: denali: simplify multi device fixup code

The available configuration of the IP bus width is x8 or x16, so the
possible value for denali->devnum is 1 or 2.

If the value is 1, there is nothing to do.  Fixup parameters only
when denali->devnum is 2.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/denali.c