Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 038a5380 authored by Boris Brezillon's avatar Boris Brezillon Committed by Brian Norris
Browse files

cris: nand: remove useless mtd->priv = chip assignments



mtd_to_nand() now uses the container_of() approach to transform an
mtd_info pointer into a nand_chip one. Drop useless mtd->priv
assignments from NAND controller drivers.

Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 37f5a546
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -149,9 +149,6 @@ struct mtd_info *__init crisv32_nand_flash_probe(void)
	this = &wrapper->chip;
	crisv32_mtd = nand_to_mtd(this);

	/* Link the private data with the MTD structure */
	crisv32_mtd->priv = this;

	/* Set address of NAND IO lines */
	this->IO_ADDR_R = read_cs;
	this->IO_ADDR_W = write_cs;
+0 −3
Original line number Diff line number Diff line
@@ -140,9 +140,6 @@ struct mtd_info *__init crisv32_nand_flash_probe(void)
	bif_cfg.gated_csp1 = regk_bif_core_wr;
	REG_WR(bif_core, regi_bif_core, rw_grp3_cfg, bif_cfg);

	/* Link the private data with the MTD structure */
	crisv32_mtd->priv = this;

	/* Set address of NAND IO lines */
	this->IO_ADDR_R = read_cs;
	this->IO_ADDR_W = write_cs;