crypto: stm32/crc32 - fix multi-instance
authorNicolas Toromanoff <nicolas.toromanoff@st.com>
Tue, 12 May 2020 14:11:11 +0000 (16:11 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 May 2020 14:08:20 +0000 (00:08 +1000)
commit10b89c43a64eb0d236903b79a3bc9d8f6cbfd9c7
tree8cf0c1554f847eab0c2d80804e5b70aca72246dc
parenta8cc3128bf2c01c4d448fe17149e87132113b445
crypto: stm32/crc32 - fix multi-instance

Ensure CRC algorithm is registered only once in crypto framework when
there are several instances of CRC devices.

Update the CRC device list management to avoid that only the first CRC
instance is used.

Fixes: b51dbe90912a ("crypto: stm32 - Support for STM32 CRC32 crypto module")
Signed-off-by: Nicolas Toromanoff <nicolas.toromanoff@st.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/stm32/stm32-crc32.c