drivers/staging changes for SMBIOS and System Firmware
RFC PATCH 26/35 drivers/staging changes for SMBIOS and System Firmware
drivers/staging changes for SMBIOS and System Firmware
--- drivers/staging/hv/hv_mouse.c | 1 - drivers/staging/hv/hv_timesource.c | 18 +++++++++--------- drivers/staging/hv/hv_util.c | 17 ++++++++--------- drivers/staging/hv/netvsc_drv.c | 17 ++++++++--------- drivers/staging/hv/vmbus_drv.c | 1 - 5 files changed, 25 insertions(+), 29 deletions(-)
drivers/staging/hv/hv_mouse.c +0 -1
@@ -23,7 +23,6 @@#include <linux/hid.h> #include <linux/hiddev.h> #include <linux/pci.h> -#include <linux/dmi.h> #include <linux/delay.h> #include "hyperv.h"
drivers/staging/hv/hv_timesource.c +9 -9
@@ -27,7 +27,7 @@#include <linux/init.h> #include <linux/module.h> #include <linux/pci.h> -#include <linux/dmi.h> +#include <linux/sysfw.h> #include <asm/hyperv.h> #include <asm/mshyperv.h> #include <asm/hypervisor.h>
@@ -61,19 +61,19 @@ static struct clocksource hyperv_cs = { .shift = HV_CLOCK_SHIFT, }; -static const struct dmi_system_id __initconst -hv_timesource_dmi_table[]__maybe_unused = { +static const struct sysfw_id __initconst +hv_timesource_smbios_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" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"Microsoft Corporation" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"Virtual Machine" ), +SYSFW_MATCH (SYSFW_BOARD_NAME ,"Virtual Machine" ), }, }, - { }, + {}, }; -MODULE_DEVICE_TABLE (dmi, hv_timesource_dmi_table); +MODULE_DEVICE_TABLE (smbios, hv_timesource_smbios_table);static const struct pci_device_id __initconst hv_timesource_pci_table[]__maybe_unused = {
@@ -89,7 +89,7 @@ static int __init init_hv_clocksource(void) !(ms_hyperv.features & HV_X64_MSR_TIME_REF_COUNT_AVAILABLE))return -ENODEV ; -if (!dmi_check_system (hv_timesource_dmi_table)) +if (!sysfw_callback (hv_timesource_smbios_table))return -ENODEV ;pr_info ("Registering HyperV clock source\n" );
drivers/staging/hv/hv_util.c +8 -9
@@ -26,8 +26,8 @@#include <linux/slab.h> #include <linux/sysctl.h> #include <linux/reboot.h> -#include <linux/dmi.h> #include <linux/pci.h> +#include <linux/sysfw.h> #include "hyperv.h" #include "hv_kvp.h"
@@ -218,19 +218,18 @@ hv_utils_pci_table[] __maybe_unused = {MODULE_DEVICE_TABLE (pci, hv_utils_pci_table); -static const struct dmi_system_id __initconst -hv_utils_dmi_table[]__maybe_unused = { +static const struct sysfw_id __initconst hv_utils_id_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" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"Microsoft Corporation" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"Virtual Machine" ), +SYSFW_MATCH (SYSFW_BOARD_NAME ,"Virtual Machine" ), }, }, - { }, + {}, }; -MODULE_DEVICE_TABLE (dmi, hv_utils_dmi_table); +MODULE_DEVICE_TABLE (sysfw, hv_utils_id_table);static int __init init_hyperv_utils (void )
@@ -241,7 +240,7 @@ static int __init init_hyperv_utils(void)return -ENODEV ; -if (!dmi_check_system (hv_utils_dmi_table)) +if (!sysfw_callback (hv_utils_id_table))return -ENODEV ; shut_txf_buf =kmalloc (PAGE_SIZE ,GFP_KERNEL );
drivers/staging/hv/netvsc_drv.c +8 -9
@@ -32,8 +32,8 @@#include <linux/skbuff.h> #include <linux/in.h> #include <linux/slab.h> -#include <linux/dmi.h> #include <linux/pci.h> +#include <linux/sysfw.h> #include <net/arp.h> #include <net/route.h> #include <net/sock.h>
@@ -439,19 +439,18 @@ static void __exit netvsc_drv_exit(void) } -static const struct dmi_system_id __initconst -hv_netvsc_dmi_table[]__maybe_unused = { +static const struct sysfw_id __initconst hv_netvsc_id_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" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"Microsoft Corporation" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"Virtual Machine" ), +SYSFW_MATCH (SYSFW_BOARD_NAME ,"Virtual Machine" ), }, }, - { }, + {}, }; -MODULE_DEVICE_TABLE (dmi, hv_netvsc_dmi_table); +MODULE_DEVICE_TABLE (sysfw, hv_netvsc_id_table);static int __init netvsc_drv_init (void ) {
@@ -460,7 +459,7 @@ static int __init netvsc_drv_init(void)pr_info ("initializing...." ); -if (!dmi_check_system (hv_netvsc_dmi_table)) +if (!sysfw_callback (hv_netvsc_id_table))return -ENODEV ;
drivers/staging/hv/vmbus_drv.c +0 -1
@@ -29,7 +29,6 @@#include <linux/interrupt.h> #include <linux/sysctl.h> #include <linux/pci.h> -#include <linux/dmi.h> #include <linux/slab.h> #include <linux/acpi.h> #include <acpi/acpi_bus.h>
Signature · 1 line
1.7.5.1