diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-26 17:49:12 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-26 17:49:12 -0500 |
commit | 3c834b6f41fa21a48389b13c3bf63aa8df1d7080 (patch) | |
tree | 126447276497510f44277e8442715e103e2cb85a /drivers/char/hw_random | |
parent | 515d01f7726b9ba4838787d247115e1b259e1cc7 (diff) | |
parent | 8078db789a92b10ff6e2d713231b5367e014c53b (diff) |
Merge tag 'virtio-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux
Pull virtio updates from Rusty Russell:
"All trivial, thanks to the stuff which didn't quite make it time"
* tag 'virtio-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux:
virtio_console: Initialize guest_connected=true for rproc_serial
virtio: use module_virtio_driver.
virtio: Add module driver macro for virtio drivers.
virtio_console: Use virtio device index to generate port name
virtio: make pci_device_id const
virtio: make config_ops const
virtio-mmio: fix wrong comment about register offset
virtio_console: Let unconnected rproc device receive data.
Diffstat (limited to 'drivers/char/hw_random')
-rw-r--r-- | drivers/char/hw_random/virtio-rng.c | 13 |
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 | ||
157 | static int __init init(void) | 157 | module_virtio_driver(virtio_rng_driver); |
158 | { | ||
159 | return register_virtio_driver(&virtio_rng_driver); | ||
160 | } | ||
161 | |||
162 | static void __exit fini(void) | ||
163 | { | ||
164 | unregister_virtio_driver(&virtio_rng_driver); | ||
165 | } | ||
166 | module_init(init); | ||
167 | module_exit(fini); | ||
168 | |||
169 | MODULE_DEVICE_TABLE(virtio, id_table); | 158 | MODULE_DEVICE_TABLE(virtio, id_table); |
170 | MODULE_DESCRIPTION("Virtio random number driver"); | 159 | MODULE_DESCRIPTION("Virtio random number driver"); |
171 | MODULE_LICENSE("GPL"); | 160 | MODULE_LICENSE("GPL"); |