]> err.no Git - linux-2.6/commitdiff
[PATCH] Add missing ifdef for VIA RNG code
authorMark Brown <broonie@sirena.org.uk>
Sat, 4 Mar 2006 02:05:58 +0000 (21:05 -0500)
committerJeff Garzik <jeff@garzik.org>
Sat, 4 Mar 2006 02:05:58 +0000 (21:05 -0500)
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 <broonie@sirena.org.uk>
Signed-Off-By: Jeff Garzik <jeff@garzik.org>
drivers/char/hw_random.c

index b3bc2e37e6160957786d7ecd69cf9d6c92bed250..29dc87e59020466ab8e7595f3ebf28e2e7e66d8b 100644 (file)
@@ -131,7 +131,9 @@ enum {
        rng_hw_none,
        rng_hw_intel,
        rng_hw_amd,
+#ifdef __i386__
        rng_hw_via,
+#endif
        rng_hw_geode,
 };