Merge tag 'for-linus-5.2' of git://github.com/cminyard/linux-ipmi
[linux-2.6-microblaze.git] / crypto / drbg.c
index bc52d95..2a5b16b 100644 (file)
@@ -1587,7 +1587,6 @@ static int drbg_init_hash_kernel(struct drbg_state *drbg)
        }
 
        sdesc->shash.tfm = tfm;
-       sdesc->shash.flags = 0;
        drbg->priv_data = sdesc;
 
        return crypto_shash_alignmask(tfm);
@@ -2039,7 +2038,7 @@ static void __exit drbg_exit(void)
        crypto_unregister_rngs(drbg_algs, (ARRAY_SIZE(drbg_cores) * 2));
 }
 
-module_init(drbg_init);
+subsys_initcall(drbg_init);
 module_exit(drbg_exit);
 #ifndef CRYPTO_DRBG_HASH_STRING
 #define CRYPTO_DRBG_HASH_STRING ""