From: Mark Brown Date: Sat, 4 Mar 2006 02:05:58 +0000 (-0500) Subject: [PATCH] Add missing ifdef for VIA RNG code X-Git-Tag: v2.6.16-rc6~121^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28e02bac9c943ed85a29b41ccb9bf95641b2e263;p=linux-2.6 [PATCH] Add missing ifdef for VIA RNG code 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 Signed-Off-By: Jeff Garzik --- diff --git a/drivers/char/hw_random.c b/drivers/char/hw_random.c index b3bc2e37e6..29dc87e590 100644 --- a/drivers/char/hw_random.c +++ b/drivers/char/hw_random.c @@ -131,7 +131,9 @@ enum { rng_hw_none, rng_hw_intel, rng_hw_amd, +#ifdef __i386__ rng_hw_via, +#endif rng_hw_geode, };