hwrng: timeriomem - Fix potential oops (request_mem_region/__devinit)
authorAlexander Clouter <alex@digriz.org.uk>
Wed, 3 Jun 2009 09:28:03 +0000 (19:28 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 3 Jun 2009 09:28:03 +0000 (19:28 +1000)
commit08ced854fc4a979d9e59ba01000bf96e7057cfbc
treef290c5ebb2f7627fb67196fcc5738d44ef243443
parentaa07a6990f4b6a8ef9fc538dea55bac6f92255f2
hwrng: timeriomem - Fix potential oops (request_mem_region/__devinit)

Fixed oops when calling device_unregister followed by device_register
(changing __init to __devinit) and removed request_mem_region() as
platform_device_register already does this which can result in EBUSY

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/timeriomem-rng.c