crypto: ux500/hash - Silence compiler warning for !CONFIG_PM
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 6 Nov 2014 13:28:01 +0000 (14:28 +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/hash/hash_core.c

index 1c73f4fbc2526027f96b2323b21b0c4c0c1e1b0f..5af53b5508b0ded6517e5525af246ea921654501 100644 (file)
@@ -1881,6 +1881,7 @@ static void ux500_hash_shutdown(struct platform_device *pdev)
                        __func__);
 }
 
+#ifdef CONFIG_PM_SLEEP
 /**
  * ux500_hash_suspend - Function that suspends the hash device.
  * @dev:       Device to suspend.
@@ -1949,6 +1950,7 @@ static int ux500_hash_resume(struct device *dev)
 
        return ret;
 }
+#endif
 
 static SIMPLE_DEV_PM_OPS(ux500_hash_pm, ux500_hash_suspend, ux500_hash_resume);