diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2014-11-06 08:28:01 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-11-10 09:09:03 -0500 |
commit | bdcf83b7831e41f666b50ee6cd946c733bbea1ef (patch) | |
tree | d82c45e4c8815af584663d4ddfa5f37624edf20a | |
parent | dbd8fbefd833da9f212d19e0034b62c02c644b70 (diff) |
crypto: ux500/hash - 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>
-rw-r--r-- | drivers/crypto/ux500/hash/hash_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/ux500/hash/hash_core.c b/drivers/crypto/ux500/hash/hash_core.c index 1c73f4fbc252..5af53b5508b0 100644 --- a/drivers/crypto/ux500/hash/hash_core.c +++ b/drivers/crypto/ux500/hash/hash_core.c | |||
@@ -1881,6 +1881,7 @@ static void ux500_hash_shutdown(struct platform_device *pdev) | |||
1881 | __func__); | 1881 | __func__); |
1882 | } | 1882 | } |
1883 | 1883 | ||
1884 | #ifdef CONFIG_PM_SLEEP | ||
1884 | /** | 1885 | /** |
1885 | * ux500_hash_suspend - Function that suspends the hash device. | 1886 | * ux500_hash_suspend - Function that suspends the hash device. |
1886 | * @dev: Device to suspend. | 1887 | * @dev: Device to suspend. |
@@ -1949,6 +1950,7 @@ static int ux500_hash_resume(struct device *dev) | |||
1949 | 1950 | ||
1950 | return ret; | 1951 | return ret; |
1951 | } | 1952 | } |
1953 | #endif | ||
1952 | 1954 | ||
1953 | static SIMPLE_DEV_PM_OPS(ux500_hash_pm, ux500_hash_suspend, ux500_hash_resume); | 1955 | static SIMPLE_DEV_PM_OPS(ux500_hash_pm, ux500_hash_suspend, ux500_hash_resume); |
1954 | 1956 | ||