[CRYPTO] hifn795x: Disallow built-in hifn795x when HW_RANDOM is m
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 25 Jan 2008 22:48:44 +0000 (09:48 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 25 Jan 2008 22:48:44 +0000 (09:48 +1100)
commit946fef4e14ebc2f14ab05f54789843621fe87f60
treef883bbadbac017ac46e00d8da528b50b78c1318d
parent2d94dfc8c38edf63e91e48fd55c3a8822b6a9ced
[CRYPTO] hifn795x: Disallow built-in hifn795x when HW_RANDOM is m

Currently it is possible to select HW_RANDOM as a module and have
hifn795x built-in.  This causes a build problem because hifn795x
will then call hwrng_register which isn't built-in.

This patch introduces a new config option to control the hifn795x
RNG which lets us avoid this problem.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/Kconfig
drivers/crypto/hifn_795x.c