aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/virtio_net.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-02-26 17:49:12 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-26 17:49:12 -0500
commit3c834b6f41fa21a48389b13c3bf63aa8df1d7080 (patch)
tree126447276497510f44277e8442715e103e2cb85a /drivers/net/virtio_net.c
parent515d01f7726b9ba4838787d247115e1b259e1cc7 (diff)
parent8078db789a92b10ff6e2d713231b5367e014c53b (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/net/virtio_net.c')
-rw-r--r--drivers/net/virtio_net.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 192c91c8e799..57ac4b0294bc 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -1736,17 +1736,7 @@ static struct virtio_driver virtio_net_driver = {
1736#endif 1736#endif
1737}; 1737};
1738 1738
1739static int __init init(void) 1739module_virtio_driver(virtio_net_driver);
1740{
1741 return register_virtio_driver(&virtio_net_driver);
1742}
1743
1744static void __exit fini(void)
1745{
1746 unregister_virtio_driver(&virtio_net_driver);
1747}
1748module_init(init);
1749module_exit(fini);
1750 1740
1751MODULE_DEVICE_TABLE(virtio, id_table); 1741MODULE_DEVICE_TABLE(virtio, id_table);
1752MODULE_DESCRIPTION("Virtio network driver"); 1742MODULE_DESCRIPTION("Virtio network driver");