Commit bc2d5975 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman

Staging: hv: Get rid of the indirection to invoke rndis_filte_device_add()

Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarAbhishek Kane <v-abkane@microsoft.com>
Signed-off-by: default avatarHank Janssen <hjanssen@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 4eb498fa
...@@ -349,9 +349,6 @@ static int netvsc_probe(struct hv_device *dev) ...@@ -349,9 +349,6 @@ static int netvsc_probe(struct hv_device *dev)
struct netvsc_device_info device_info; struct netvsc_device_info device_info;
int ret; int ret;
if (!net_drv_obj->base.dev_add)
return -1;
net = alloc_etherdev(sizeof(struct net_device_context)); net = alloc_etherdev(sizeof(struct net_device_context));
if (!net) if (!net)
return -1; return -1;
...@@ -366,7 +363,7 @@ static int netvsc_probe(struct hv_device *dev) ...@@ -366,7 +363,7 @@ static int netvsc_probe(struct hv_device *dev)
INIT_WORK(&net_device_ctx->work, netvsc_send_garp); INIT_WORK(&net_device_ctx->work, netvsc_send_garp);
/* Notify the netvsc driver of the new device */ /* Notify the netvsc driver of the new device */
ret = net_drv_obj->base.dev_add(dev, &device_info); ret = rndis_filte_device_add(dev, &device_info);
if (ret != 0) { if (ret != 0) {
free_netdev(net); free_netdev(net);
dev_set_drvdata(&dev->device, NULL); dev_set_drvdata(&dev->device, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment