Almost all the code for the VIA RNG is guarded with __i386__ #ifdefs,
the only exception being the enumeration of RNG types which is used to
index into the rng_vector ops array. This patch adds an ifdef around
that for consistency and since the guard makes a difference when adding
new RNG types on non-i386 hardware.
Signed-Off-By: Mark Brown <[email protected]>
Index: hwrng/drivers/char/hw_random.c
===================================================================
--- hwrng.orig/drivers/char/hw_random.c 2006-02-10 07:22:48.000000000 +0000
+++ hwrng/drivers/char/hw_random.c 2006-02-22 22:59:05.000000000 +0000
@@ -121,7 +121,9 @@ enum {
rng_hw_none,
rng_hw_intel,
rng_hw_amd,
+#ifdef __i386__
rng_hw_via,
+#endif
};
static struct rng_operations rng_vendor_ops[] = {