virtio: rng: split out common code in probe / remove for s3/s4 ops
authorAmit Shah <amit.shah@redhat.com>
Mon, 28 May 2012 06:48:42 +0000 (12:18 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 30 Jul 2012 04:00:50 +0000 (13:30 +0930)
commit178d855e7810deecb7fa96afdf82ec45b0284233
tree6c9cd60d603f05031904be7396fc3ee1273c66b5
parent4476987a9a4525db3ebe29538cc357ca589db4ac
virtio: rng: split out common code in probe / remove for s3/s4 ops

The freeze/restore s3/s4 operations will use code that's common to the
probe and remove routines.  Put the common code in separate funcitons.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/hw_random/virtio-rng.c