aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2011-05-12 19:35:13 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2011-05-17 12:28:56 -0700
commit4753ff6a10136e93c751b53406c8542f446cfe84 (patch)
treece9a30eefeb2d54150be7f923810a7b1cf85a5ef /drivers/staging/hv
parentStaging: hv: netvsc_drv: Get rid of the used type struct netvsc_driver (diff)
downloadlinux-dev-4753ff6a10136e93c751b53406c8542f446cfe84.tar.xz
linux-dev-4753ff6a10136e93c751b53406c8542f446cfe84.zip
Staging: hv: netvsc_drv: Move the dmi table declaration to earlier in the file
Move the dmi table declaration to earlier in the file. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Abhishek Kane <v-abkane@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv')
-rw-r--r--drivers/staging/hv/netvsc_drv.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/drivers/staging/hv/netvsc_drv.c b/drivers/staging/hv/netvsc_drv.c
index d3b614899651..b0801c6c96f2 100644
--- a/drivers/staging/hv/netvsc_drv.c
+++ b/drivers/staging/hv/netvsc_drv.c
@@ -438,6 +438,21 @@ static void netvsc_drv_exit(void)
vmbus_child_driver_unregister(&netvsc_drv.driver);
}
+
+static const struct dmi_system_id __initconst
+hv_netvsc_dmi_table[] __maybe_unused = {
+ {
+ .ident = "Hyper-V",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "Virtual Machine"),
+ DMI_MATCH(DMI_BOARD_NAME, "Virtual Machine"),
+ },
+ },
+ { },
+};
+MODULE_DEVICE_TABLE(dmi, hv_netvsc_dmi_table);
+
static int netvsc_drv_init(int (*drv_init)(struct hv_driver *drv))
{
struct hv_driver *drv = &netvsc_drv;
@@ -454,20 +469,6 @@ static int netvsc_drv_init(int (*drv_init)(struct hv_driver *drv))
return ret;
}
-static const struct dmi_system_id __initconst
-hv_netvsc_dmi_table[] __maybe_unused = {
- {
- .ident = "Hyper-V",
- .matches = {
- DMI_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
- DMI_MATCH(DMI_PRODUCT_NAME, "Virtual Machine"),
- DMI_MATCH(DMI_BOARD_NAME, "Virtual Machine"),
- },
- },
- { },
-};
-MODULE_DEVICE_TABLE(dmi, hv_netvsc_dmi_table);
-
static int __init netvsc_init(void)
{
pr_info("initializing....");