Merge tag 'asoc-v4.3-rc2' into asoc-next
[firefly-linux-kernel-4.4.55.git] / drivers / spi / spi-atmel.c
index 1cc1f1e0d17fd60e88957b807a580d738dc227cc..41e37a6a1368b273e19fd8eec798f2458e6ae1e4 100644 (file)
@@ -1711,6 +1711,7 @@ static int atmel_spi_runtime_resume(struct device *dev)
        return clk_prepare_enable(as->clk);
 }
 
+#ifdef CONFIG_PM_SLEEP
 static int atmel_spi_suspend(struct device *dev)
 {
        struct spi_master *master = dev_get_drvdata(dev);
@@ -1747,6 +1748,7 @@ static int atmel_spi_resume(struct device *dev)
 
        return ret;
 }
+#endif
 
 static const struct dev_pm_ops atmel_spi_pm_ops = {
        SET_SYSTEM_SLEEP_PM_OPS(atmel_spi_suspend, atmel_spi_resume)