Skip to content

Commit cac6f1b

Browse files
YueHaibingherbertx
authored andcommitted
crypto: sl3516 - Fix build warning without CONFIG_PM
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>
1 parent f873a4d commit cac6f1b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/crypto/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ config CRYPTO_DEV_SL3516
273273
select CRYPTO_ECB
274274
select CRYPTO_AES
275275
select HW_RANDOM
276+
depends on PM
276277
help
277278
This option allows you to have support for SL3516 crypto offloader.
278279

0 commit comments

Comments
 (0)