crypto: ux500/cryp - Silence compiler warning for !CONFIG_PM
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 6 Nov 2014 13:27:35 +0000 (14:27 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 10 Nov 2014 14:09:03 +0000 (22:09 +0800)
The system PM functions were unused when CONFIG_PM is unset. Let's move
them inside CONFIG_PM_SLEEP to silence the compiler warning.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ux500/cryp/cryp_core.c

index 92105f3dc8e09c9f94ef2b4efcb839ec051e2c42..83811aab207e57fd44b336fea0271098808c00e8 100644 (file)
@@ -1688,6 +1688,7 @@ static void ux500_cryp_shutdown(struct platform_device *pdev)
 
 }
 
+#ifdef CONFIG_PM_SLEEP
 static int ux500_cryp_suspend(struct device *dev)
 {
        int ret;
@@ -1768,6 +1769,7 @@ static int ux500_cryp_resume(struct device *dev)
 
        return ret;
 }
+#endif
 
 static SIMPLE_DEV_PM_OPS(ux500_cryp_pm, ux500_cryp_suspend, ux500_cryp_resume);