diff options
author | K. Y. Srinivasan | 2011-08-25 18:48:34 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2011-08-25 20:31:10 +0200 |
commit | 345c4cc3b953a43464776701918e22c7e30cedd0 (patch) | |
tree | d610f1955161690b9f0b0eac974a7f491cc44abc /drivers/staging/hv/netvsc_drv.c | |
parent | Staging: hv: storvsc: Use the newly introduced vmbus ID in storvsc driver (diff) | |
download | kernel-qcow2-linux-345c4cc3b953a43464776701918e22c7e30cedd0.tar.gz kernel-qcow2-linux-345c4cc3b953a43464776701918e22c7e30cedd0.tar.xz kernel-qcow2-linux-345c4cc3b953a43464776701918e22c7e30cedd0.zip |
Staging: hv: netvsc: Use the newly introduced vmbus ID in netvsc driver
Use the newly introduced vmbus ID in netvsc driver. Also, do the associated
cleanup.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/netvsc_drv.c')
-rw-r--r-- | drivers/staging/hv/netvsc_drv.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/staging/hv/netvsc_drv.c b/drivers/staging/hv/netvsc_drv.c index 61989f0d9f0d..2e25c957cfd0 100644 --- a/drivers/staging/hv/netvsc_drv.c +++ b/drivers/staging/hv/netvsc_drv.c @@ -413,8 +413,24 @@ static int netvsc_remove(struct hv_device *dev) return 0; } +static const struct hv_vmbus_device_id id_table[] = { + { + /* Network guid */ + .guid = { + 0x63, 0x51, 0x61, 0xF8, 0x3E, 0xDF, 0xc5, 0x46, + 0x91, 0x3F, 0xF2, 0xD2, 0xF9, 0x65, 0xED, 0x0E + } + }, + { + .guid = { } + }, +}; + +MODULE_DEVICE_TABLE(vmbus, id_table); + /* The one and only one */ static struct hv_driver netvsc_drv = { + .id_table = id_table, .probe = netvsc_probe, .remove = netvsc_remove, }; |