diff options
-rw-r--r-- | drivers/net/virtio_net.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index d9ebac8a2d99..bb8b52d0d1ce 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c | |||
@@ -999,7 +999,7 @@ static unsigned int features[] = { | |||
999 | VIRTIO_NET_F_CTRL_RX, VIRTIO_NET_F_CTRL_VLAN, | 999 | VIRTIO_NET_F_CTRL_RX, VIRTIO_NET_F_CTRL_VLAN, |
1000 | }; | 1000 | }; |
1001 | 1001 | ||
1002 | static struct virtio_driver virtio_net = { | 1002 | static struct virtio_driver virtio_net_driver = { |
1003 | .feature_table = features, | 1003 | .feature_table = features, |
1004 | .feature_table_size = ARRAY_SIZE(features), | 1004 | .feature_table_size = ARRAY_SIZE(features), |
1005 | .driver.name = KBUILD_MODNAME, | 1005 | .driver.name = KBUILD_MODNAME, |
@@ -1012,12 +1012,12 @@ static struct virtio_driver virtio_net = { | |||
1012 | 1012 | ||
1013 | static int __init init(void) | 1013 | static int __init init(void) |
1014 | { | 1014 | { |
1015 | return register_virtio_driver(&virtio_net); | 1015 | return register_virtio_driver(&virtio_net_driver); |
1016 | } | 1016 | } |
1017 | 1017 | ||
1018 | static void __exit fini(void) | 1018 | static void __exit fini(void) |
1019 | { | 1019 | { |
1020 | unregister_virtio_driver(&virtio_net); | 1020 | unregister_virtio_driver(&virtio_net_driver); |
1021 | } | 1021 | } |
1022 | module_init(init); | 1022 | module_init(init); |
1023 | module_exit(fini); | 1023 | module_exit(fini); |