Commit a2262260 authored by Vernon Mauery's avatar Vernon Mauery Committed by Matthew Garrett

ibm_rtl: Loosen the DMI criteria to all IBM machines

Allow all IBM machines to pass the DMI check so that we
don't have to add them one by one to the driver.  Any IBM
machine that has the _RTL_ table in the EBDA will work.
Signed-off-by: default avatarVernon Mauery <vernux@us.ibm.com>
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent d41014b9
...@@ -220,32 +220,13 @@ static void rtl_teardown_sysfs(void) { ...@@ -220,32 +220,13 @@ static void rtl_teardown_sysfs(void) {
sysdev_class_unregister(&class_rtl); sysdev_class_unregister(&class_rtl);
} }
static int dmi_check_cb(const struct dmi_system_id *id)
{
RTL_DEBUG("found IBM server '%s'\n", id->ident);
return 0;
}
#define ibm_dmi_entry(NAME, TYPE) \
{ \
.ident = NAME, \
.matches = { \
DMI_MATCH(DMI_SYS_VENDOR, "IBM"), \
DMI_MATCH(DMI_PRODUCT_NAME, TYPE), \
}, \
.callback = dmi_check_cb \
}
static struct dmi_system_id __initdata ibm_rtl_dmi_table[] = { static struct dmi_system_id __initdata ibm_rtl_dmi_table[] = {
ibm_dmi_entry("BladeCenter LS21", "7971"), { \
ibm_dmi_entry("BladeCenter LS22", "7901"), .matches = { \
ibm_dmi_entry("BladeCenter HS21 XM", "7995"), DMI_MATCH(DMI_SYS_VENDOR, "IBM"), \
ibm_dmi_entry("BladeCenter HS22", "7870"), }, \
ibm_dmi_entry("BladeCenter HS22V", "7871"), },
ibm_dmi_entry("System x3550 M2", "7946"),
ibm_dmi_entry("System x3650 M2", "7947"),
ibm_dmi_entry("System x3550 M3", "7944"),
ibm_dmi_entry("System x3650 M3", "7945"),
{ } { }
}; };
......
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