aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2013-02-13 01:29:28 -0500
committerRusty Russell <rusty@rustcorp.com.au>2013-02-13 01:30:37 -0500
commitb2a17029c29bb6f7dec580feffa715b9fcf51e42 (patch)
tree2db568a277276ca7d4bf49ce57935827ae6ee1ff /drivers/char
parent6e105e0593055dc4aae21df7bca3868045754148 (diff)
virtio: use module_virtio_driver.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/hw_random/virtio-rng.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/char/hw_random/virtio-rng.c b/drivers/char/hw_random/virtio-rng.c
index b65c10395959..10fd71ccf587 100644
--- a/drivers/char/hw_random/virtio-rng.c
+++ b/drivers/char/hw_random/virtio-rng.c
@@ -154,18 +154,7 @@ static struct virtio_driver virtio_rng_driver = {
154#endif 154#endif
155}; 155};
156 156
157static int __init init(void) 157module_virtio_driver(virtio_rng_driver);
158{
159 return register_virtio_driver(&virtio_rng_driver);
160}
161
162static void __exit fini(void)
163{
164 unregister_virtio_driver(&virtio_rng_driver);
165}
166module_init(init);
167module_exit(fini);
168
169MODULE_DEVICE_TABLE(virtio, id_table); 158MODULE_DEVICE_TABLE(virtio, id_table);
170MODULE_DESCRIPTION("Virtio random number driver"); 159MODULE_DESCRIPTION("Virtio random number driver");
171MODULE_LICENSE("GPL"); 160MODULE_LICENSE("GPL");