crypto: sl3516 - Fix build warning without CONFIG_PM
authorYueHaibing <yuehaibing@huawei.com>
Fri, 18 Jun 2021 09:35:51 +0000 (17:35 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 24 Jun 2021 06:51:35 +0000 (14:51 +0800)
drivers/crypto/gemini/sl3516-ce-core.c:345:12:
 warning: ‘sl3516_ce_pm_resume’ defined but not used [-Wunused-function]
 static int sl3516_ce_pm_resume(struct device *dev)
            ^~~~~~~~~~~~~~~~~~~

The driver needs PM, otherwise clock and resets are never set.
So make it depends on PM to fix this warning.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Suggested-by: LABBE Corentin <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/Kconfig

index 99b09079017882a8a573a297e50cddb9e8765a8b..6f14f39d32e3e7ac67cc4d7a6a549dcbf9ffdfc0 100644 (file)
@@ -273,6 +273,7 @@ config CRYPTO_DEV_SL3516
        select CRYPTO_ECB
        select CRYPTO_AES
        select HW_RANDOM
+       depends on PM
        help
          This option allows you to have support for SL3516 crypto offloader.