omap: rng: Use resource_size instead of manual calculation
authorTobias Klauser <tklauser@distanz.ch>
Thu, 24 Sep 2009 23:23:18 +0000 (16:23 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 24 Sep 2009 23:23:18 +0000 (16:23 -0700)
commit0fd92a15a01e6a57c1bbc816c574ec135c1c482e
tree7a03c8a08c2e292315aa19f4d95957acca7996d2
parent44e74840d668d23b65e22772828e2600641b6ab0
omap: rng: Use resource_size instead of manual calculation

Use the resource_size function instead of manually calculating the
resource size. This reduces the chance of introducing off-by-one-errors.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
drivers/char/hw_random/omap-rng.c