diff options
author | Ulf Hansson | 2014-11-06 14:27:35 +0100 |
---|---|---|
committer | Herbert Xu | 2014-11-10 15:09:03 +0100 |
commit | dbd8fbefd833da9f212d19e0034b62c02c644b70 (patch) | |
tree | 8e216178b4cc20dc5bcba8ff6136e132fdbda0ad /drivers/crypto/ux500/cryp | |
parent | crypto: drbg - add MODULE_ALIAS for all DRBG types (diff) | |
download | kernel-qcow2-linux-dbd8fbefd833da9f212d19e0034b62c02c644b70.tar.gz kernel-qcow2-linux-dbd8fbefd833da9f212d19e0034b62c02c644b70.tar.xz kernel-qcow2-linux-dbd8fbefd833da9f212d19e0034b62c02c644b70.zip |
crypto: ux500/cryp - Silence compiler warning for !CONFIG_PM
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>
Diffstat (limited to 'drivers/crypto/ux500/cryp')
-rw-r--r-- | drivers/crypto/ux500/cryp/cryp_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/ux500/cryp/cryp_core.c b/drivers/crypto/ux500/cryp/cryp_core.c index 92105f3dc8e0..83811aab207e 100644 --- a/drivers/crypto/ux500/cryp/cryp_core.c +++ b/drivers/crypto/ux500/cryp/cryp_core.c @@ -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); |