diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2013-02-13 01:29:28 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-02-13 01:30:37 -0500 |
commit | b2a17029c29bb6f7dec580feffa715b9fcf51e42 (patch) | |
tree | 2db568a277276ca7d4bf49ce57935827ae6ee1ff /drivers/net/virtio_net.c | |
parent | 6e105e0593055dc4aae21df7bca3868045754148 (diff) |
virtio: use module_virtio_driver.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r-- | drivers/net/virtio_net.c | 12 |
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 | ||
1648 | static int __init init(void) | 1648 | module_virtio_driver(virtio_net_driver); |
1649 | { | ||
1650 | return register_virtio_driver(&virtio_net_driver); | ||
1651 | } | ||
1652 | |||
1653 | static void __exit fini(void) | ||
1654 | { | ||
1655 | unregister_virtio_driver(&virtio_net_driver); | ||
1656 | } | ||
1657 | module_init(init); | ||
1658 | module_exit(fini); | ||
1659 | 1649 | ||
1660 | MODULE_DEVICE_TABLE(virtio, id_table); | 1650 | MODULE_DEVICE_TABLE(virtio, id_table); |
1661 | MODULE_DESCRIPTION("Virtio network driver"); | 1651 | MODULE_DESCRIPTION("Virtio network driver"); |