summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi-nor
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-10-31 06:33:27 +0300
committerBrian Norris <computersforpeace@gmail.com>2015-11-12 00:58:56 +0300
commit30069af7348b56eb8c5e1dda7788a531c5f24ca2 (patch)
tree06fd1ec7e1726d572bd9e923dcea0158cb5e017f /drivers/mtd/spi-nor
parentdf02c885f8697546da41665f28dde5e30ce99674 (diff)
downloadlinux-30069af7348b56eb8c5e1dda7788a531c5f24ca2.tar.xz
mtd: spi-nor: drop flash_node field
We can just alias to the MTD of_node. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/spi-nor')
-rw-r--r--drivers/mtd/spi-nor/spi-nor.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index 924d455dadb5..12041e181630 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -1258,7 +1258,6 @@ int spi_nor_scan(struct spi_nor *nor, const char *name, enum read_mode mode)
mtd->flags |= MTD_NO_ERASE;
mtd->dev.parent = dev;
- mtd_set_of_node(mtd, np);
nor->page_size = info->page_size;
mtd->writebufsize = nor->page_size;