Commit f881d829 authored by Patrick McHardy's avatar Patrick McHardy Committed by Herbert Xu

[HIFN]: Fix invalid config ifdefs for RNG support

    
The CRYPTO_DEV_HIFN_795X_RNG ifdefs are missing the CONFIG_ prefix.
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 4ee29f6a
...@@ -463,7 +463,7 @@ struct hifn_device ...@@ -463,7 +463,7 @@ struct hifn_device
unsigned int pk_clk_freq; unsigned int pk_clk_freq;
#ifdef CRYPTO_DEV_HIFN_795X_RNG #ifdef CONFIG_CRYPTO_DEV_HIFN_795X_RNG
unsigned int rng_wait_time; unsigned int rng_wait_time;
ktime_t rngtime; ktime_t rngtime;
struct hwrng rng; struct hwrng rng;
...@@ -795,7 +795,7 @@ static struct pci2id { ...@@ -795,7 +795,7 @@ static struct pci2id {
} }
}; };
#ifdef CRYPTO_DEV_HIFN_795X_RNG #ifdef CONFIG_CRYPTO_DEV_HIFN_795X_RNG
static int hifn_rng_data_present(struct hwrng *rng, int wait) static int hifn_rng_data_present(struct hwrng *rng, int wait)
{ {
struct hifn_device *dev = (struct hifn_device *)rng->priv; struct hifn_device *dev = (struct hifn_device *)rng->priv;
...@@ -880,7 +880,7 @@ static int hifn_init_pubrng(struct hifn_device *dev) ...@@ -880,7 +880,7 @@ static int hifn_init_pubrng(struct hifn_device *dev)
dprintk("Chip %s: RNG engine has been successfully initialised.\n", dprintk("Chip %s: RNG engine has been successfully initialised.\n",
dev->name); dev->name);
#ifdef CRYPTO_DEV_HIFN_795X_RNG #ifdef CONFIG_CRYPTO_DEV_HIFN_795X_RNG
/* First value must be discarded */ /* First value must be discarded */
hifn_read_1(dev, HIFN_1_RNG_DATA); hifn_read_1(dev, HIFN_1_RNG_DATA);
dev->rngtime = ktime_get(); dev->rngtime = ktime_get();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment