diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-07-25 15:31:42 +0200 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-07-31 09:46:09 +0200 |
commit | 49aa76b166765188af6682cd22985cbda1bb39c2 (patch) | |
tree | c6e44bd615c32791c353f588017e3b3efc8aa61d /fs/hfs | |
parent | mtd: rawnand: atmel: convert driver to nand_scan() (diff) | |
download | linux-49aa76b166765188af6682cd22985cbda1bb39c2.tar.xz linux-49aa76b166765188af6682cd22985cbda1bb39c2.zip |
mtd: rawnand: do not execute nand_scan_ident() if maxchips is zero
Some driver (eg. docg4) will need to handle themselves the
identification phase. As part of the migration to use nand_scan()
everywhere (which will unconditionnaly call nand_scan_ident()), we add
a condition at the start of nand_scan_with_ids() to jump over
nand_scan_ident() if the maxchips parameters is zero, meaning that the
driver does not want the core to handle this phase.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'fs/hfs')
0 files changed, 0 insertions, 0 deletions