]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: Do not treat !maxchips specially in nand_scan_with_ids()
authorBoris Brezillon <boris.brezillon@bootlin.com>
Sat, 4 Aug 2018 20:59:23 +0000 (22:59 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 3 Oct 2018 09:12:25 +0000 (11:12 +0200)
commiteb1d54796cdd973125251fc6a6eec50c6fdf76a4
tree6a79522edebdcbb347fcc7f6836983d40e09a620
parentbdbc74f43eb170c6e174584bdffabf8b70031136
mtd: rawnand: Do not treat !maxchips specially in nand_scan_with_ids()

The only reason we were skipping nand_scan_ident() when maxchips == 0
was to make the docg4 to work. Now that this driver is gone we can
remove this special case and return an error when maxchips is 0.

Suggested-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/nand_base.c