Skip to content

Commit

Permalink
[PATCH] Add missing ifdef for VIA RNG code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
broonie authored and Jeff Garzik committed Mar 4, 2006
1 parent c499ec2 commit 28e02ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/char/hw_random.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ enum {
rng_hw_none,
rng_hw_intel,
rng_hw_amd,
#ifdef __i386__
rng_hw_via,
#endif
rng_hw_geode,
};

Expand Down

0 comments on commit 28e02ba

Please sign in to comment.