aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-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 a6fcf15adc4f..80fb683d9d3a 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -1645,17 +1645,7 @@ static struct virtio_driver virtio_net_driver = {
1645#endif 1645#endif
1646}; 1646};
1647 1647
1648static int __init init(void) 1648module_virtio_driver(virtio_net_driver);
1649{
1650 return register_virtio_driver(&virtio_net_driver);
1651}
1652
1653static void __exit fini(void)
1654{
1655 unregister_virtio_driver(&virtio_net_driver);
1656}
1657module_init(init);
1658module_exit(fini);
1659 1649
1660MODULE_DEVICE_TABLE(virtio, id_table); 1650MODULE_DEVICE_TABLE(virtio, id_table);
1661MODULE_DESCRIPTION("Virtio network driver"); 1651MODULE_DESCRIPTION("Virtio network driver");