summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices/m25p80.c
diff options
context:
space:
mode:
authorBrian Norris2015-08-14 00:46:03 +0200
committerBrian Norris2015-09-02 23:11:40 +0200
commitc9ec3900abf279d9276a0661c9bed2550c1f0bb5 (patch)
treeac20ee2bf17cad50e073941ebe46e7f3ca3a0971 /drivers/mtd/devices/m25p80.c
parentmtd: spi-nor: s25sl064p supports both dual and quad I/O (diff)
downloadkernel-qcow2-linux-c9ec3900abf279d9276a0661c9bed2550c1f0bb5.tar.gz
kernel-qcow2-linux-c9ec3900abf279d9276a0661c9bed2550c1f0bb5.tar.xz
kernel-qcow2-linux-c9ec3900abf279d9276a0661c9bed2550c1f0bb5.zip
mtd: spi-nor: assign mtd->priv in spi_nor_scan()
Layering suggests that the SPI NOR layer (not the hardware driver) should be initializing the MTD layer. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Tested-by: Joachim Eastwood <manabian@gmail.com>
Diffstat (limited to 'drivers/mtd/devices/m25p80.c')
-rw-r--r--drivers/mtd/devices/m25p80.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index 9cd3631170ef..24965ae9f7aa 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -205,7 +205,6 @@ static int m25p_probe(struct spi_device *spi)
nor->priv = flash;
spi_set_drvdata(spi, flash);
- flash->mtd.priv = nor;
flash->spi = spi;
if (spi->mode & SPI_RX_QUAD)