aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/virtio_net.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2009-11-05 04:32:44 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-05 04:32:44 -0500
commit22402529df88ec39a59b08a46bced73dd5722b64 (patch)
treebb5a7e4246369a4362e68aa8895a39e74b1243c6 /drivers/net/virtio_net.c
parentdffc14365bb07812567ee7f3f8699277ef19aaa8 (diff)
virtio_net: rename driver struct to please modpost
Commit 3d1285b (move virtnet_remove to .devexit.text) introduced the first reference to __devexit in struct virtio_driver virtio_net which upset modpost ("Section mismatch in reference from the variable virtio_net to the function .devexit.text:virtnet_remove()"). Fix this by renaming virtio_net to virtio_net_driver. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reported-by: Michael S. Tsirkin <mst@redhat.com> Blame-taken-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r--drivers/net/virtio_net.c6
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
1002static struct virtio_driver virtio_net = { 1002static 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
1013static int __init init(void) 1013static 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
1018static void __exit fini(void) 1018static void __exit fini(void)
1019{ 1019{
1020 unregister_virtio_driver(&virtio_net); 1020 unregister_virtio_driver(&virtio_net_driver);
1021} 1021}
1022module_init(init); 1022module_init(init);
1023module_exit(fini); 1023module_exit(fini);