Add PM support for eSPI controller using callback function suspend
and resume in .driver of platform_driver.
Signed-off-by: Hou Zhiqiang b48...@freescale.com
---
drivers/spi/spi-fsl-espi.c | 57 ++
1 file changed, 57 insertions(+)
diff --git
On Wed, Dec 11, 2013 at 04:11:51PM +0800, Hou Zhiqiang wrote:
+#ifdef CONFIG_PM
+static int of_fsl_espi_suspend(struct device *dev, pm_message_t state)
This should be CONFIG_PM_SLEEP. I'd also expect to see a call to
spi_master_suspend() here (and similarly for resume) - it won't do
anything