crypto: caam - Fix first parameter to caam_init_rng
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Mar 2014 13:32:54 +0000 (21:32 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Mar 2014 13:32:54 +0000 (21:32 +0800)
Found by the kbuild test robot, the first argument to caam_init_rng
has a spurious ampersand.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamrng.c

index 403d8d5..3529b54 100644 (file)
@@ -290,7 +290,7 @@ static int __init caam_rng_init(void)
        rng_ctx = kmalloc(sizeof(struct caam_rng_ctx), GFP_DMA);
        if (!rng_ctx)
                return -ENOMEM;
-       caam_init_rng(&rng_ctx, dev);
+       caam_init_rng(rng_ctx, dev);
 
        dev_info(dev, "registering rng-caam\n");
        return hwrng_register(&caam_rng);