s390/crypto: use store_tod_clock_ext()
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 8 Feb 2021 15:44:45 +0000 (16:44 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Sat, 13 Feb 2021 16:17:55 +0000 (17:17 +0100)
Use store_tod_clock_ext() in order to be able to get rid
get_tod_clock_ext().

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/crypto/prng.c

index b2f219e..234d791 100644 (file)
@@ -414,7 +414,7 @@ static int __init prng_sha512_instantiate(void)
        }
 
        /* append the seed by 16 bytes of unique nonce */
-       get_tod_clock_ext(seed + seedlen);
+       store_tod_clock_ext((union tod_clock *)(seed + seedlen));
        seedlen += 16;
 
        /* now initial seed of the prno drng */