diff options
author | Brian Norris <computersforpeace@gmail.com> | 2015-08-14 00:46:03 +0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-09-02 23:11:40 +0200 |
commit | c9ec3900abf279d9276a0661c9bed2550c1f0bb5 (patch) | |
tree | ac20ee2bf17cad50e073941ebe46e7f3ca3a0971 /drivers/mtd/spi-nor/fsl-quadspi.c | |
parent | mtd: spi-nor: s25sl064p supports both dual and quad I/O (diff) | |
download | linux-c9ec3900abf279d9276a0661c9bed2550c1f0bb5.tar.xz 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/spi-nor/fsl-quadspi.c')
-rw-r--r-- | drivers/mtd/spi-nor/fsl-quadspi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c b/drivers/mtd/spi-nor/fsl-quadspi.c index d32b7e04ccca..ad9f73ae6eea 100644 --- a/drivers/mtd/spi-nor/fsl-quadspi.c +++ b/drivers/mtd/spi-nor/fsl-quadspi.c @@ -1018,7 +1018,6 @@ static int fsl_qspi_probe(struct platform_device *pdev) nor->mtd = mtd; nor->dev = dev; nor->priv = q; - mtd->priv = nor; /* fill the hooks */ nor->read_reg = fsl_qspi_read_reg; |