mtd: spi-nor: assign mtd->priv in spi_nor_scan()
authorBrian Norris <computersforpeace@gmail.com>
Thu, 13 Aug 2015 22:46:03 +0000 (15:46 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 2 Sep 2015 21:11:40 +0000 (14:11 -0700)
commitc9ec3900abf279d9276a0661c9bed2550c1f0bb5
treeac20ee2bf17cad50e073941ebe46e7f3ca3a0971
parent0f12a27b47284e86eaa4a5ad3877ec3018463178
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>
drivers/mtd/devices/m25p80.c
drivers/mtd/spi-nor/fsl-quadspi.c
drivers/mtd/spi-nor/nxp-spifi.c
drivers/mtd/spi-nor/spi-nor.c