mtd: rawnand: Get rid of chip->numchips
The same information is provided by nanddev_ntargets(). Signed-off-by: Boris Brezillon <bbrezillon@kernel.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
This commit is contained in:

committed by
Miquel Raynal

parent
6c836d515f
commit
32813e2884
@@ -1291,7 +1291,7 @@ static int __init inftl_scan_bbt(struct mtd_info *mtd)
|
||||
struct doc_priv *doc = nand_get_controller_data(this);
|
||||
struct mtd_partition parts[5];
|
||||
|
||||
if (this->numchips > doc->chips_per_floor) {
|
||||
if (nanddev_ntargets(&this->base) > doc->chips_per_floor) {
|
||||
pr_err("Multi-floor INFTL devices not yet supported.\n");
|
||||
return -EIO;
|
||||
}
|
||||
|
Reference in New Issue
Block a user