summaryrefslogtreecommitdiff
path: root/arch/cris/arch-v32/drivers/mach-a3/nandflash.c
diff options
context:
space:
mode:
authorBoris BREZILLON <boris.brezillon@free-electrons.com>2015-12-10 11:00:35 +0300
committerBrian Norris <computersforpeace@gmail.com>2015-12-19 00:22:11 +0300
commit038a5380e3698615eea341f10f42b1fd74e54e1c (patch)
tree918f9c04e935b5aaf31be598b7dc49e3e71a00eb /arch/cris/arch-v32/drivers/mach-a3/nandflash.c
parent37f5a54646da0760306ab8570115e20d0ed615f5 (diff)
downloadlinux-038a5380e3698615eea341f10f42b1fd74e54e1c.tar.xz
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: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Jesper Nilsson <jesper.nilsson@axis.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'arch/cris/arch-v32/drivers/mach-a3/nandflash.c')
-rw-r--r--arch/cris/arch-v32/drivers/mach-a3/nandflash.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/cris/arch-v32/drivers/mach-a3/nandflash.c b/arch/cris/arch-v32/drivers/mach-a3/nandflash.c
index ee74e45a5cf4..5aa3f5162310 100644
--- a/arch/cris/arch-v32/drivers/mach-a3/nandflash.c
+++ b/arch/cris/arch-v32/drivers/mach-a3/nandflash.c
@@ -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;