diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-05-31 08:17:49 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-06-06 02:44:16 -0400 |
commit | 4bb02dbd31d7430200db0e8dfb96f9d716351627 (patch) | |
tree | 3f0fdcb4448aa560434bbfa30671610f3dd0df03 /drivers/crypto/Kconfig | |
parent | 385cfc84a5a80e4b1b692a3e67c018d51631abde (diff) |
crypto: atmel-i2c - Fix build error while CRC16 set to m
If CRYPTO_DEV_ATMEL_ECC is set m, which select CRC16 to m,
while CRYPTO_DEV_ATMEL_SHA204A is set to y, building fails.
drivers/crypto/atmel-i2c.o: In function 'atmel_i2c_checksum':
atmel-i2c.c:(.text+0x16): undefined reference to 'crc16'
Add CRC16 dependency to CRYPTO_DEV_ATMEL_SHA204A
Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: da001fb651b0 ("crypto: atmel-i2c - add support for SHA204A random number generator")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/Kconfig')
-rw-r--r-- | drivers/crypto/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index bc7abad9fdff..67af688d7d84 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig | |||
@@ -541,6 +541,7 @@ config CRYPTO_DEV_ATMEL_SHA204A | |||
541 | depends on I2C | 541 | depends on I2C |
542 | select CRYPTO_DEV_ATMEL_I2C | 542 | select CRYPTO_DEV_ATMEL_I2C |
543 | select HW_RANDOM | 543 | select HW_RANDOM |
544 | select CRC16 | ||
544 | help | 545 | help |
545 | Microhip / Atmel SHA accelerator and RNG. | 546 | Microhip / Atmel SHA accelerator and RNG. |
546 | Select this if you want to use the Microchip / Atmel SHA204A | 547 | Select this if you want to use the Microchip / Atmel SHA204A |