commit | e5c27498a0403b270620b1a8a0a66e3efc222fb6 | [log] [tgz] |
---|---|---|
author | Claudiu Beznea <claudiu.beznea@microchip.com> | Wed Apr 24 09:17:59 2019 +0000 |
committer | Mark Brown <broonie@kernel.org> | Thu May 02 10:38:43 2019 +0900 |
tree | bd96161e2865f2d6465c38598ffcbab6602eda1a | |
parent | 8d1467a68426c61807c97163459b481ecb714523 [diff] |
spi: atmel-quadspi: fix crash while suspending atmel_qspi objects are kept in spi_controller objects, so, first get pointer to spi_controller object and then get atmel_qspi object from spi_controller object. Fixes: 2d30ac5ed633 ("mtd: spi-nor: atmel-quadspi: Use spi-mem interface for atmel-quadspi driver") Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com> Signed-off-by: Mark Brown <broonie@kernel.org>