aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorVernon Mauery <vernux@us.ibm.com>2010-11-02 16:08:10 -0400
committerMatthew Garrett <mjg@redhat.com>2010-11-24 11:59:57 -0500
commita2262260f9eaee4acd56b5624b5d2bf4be9bb38a (patch)
tree2af951bd5e6fecdefd4687e0ed4d2dd3397b2156 /drivers/platform
parentd41014b92d60a6b375aad9b6ebc52201ee58df70 (diff)
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: Vernon Mauery <vernux@us.ibm.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/ibm_rtl.c29
1 files changed, 5 insertions, 24 deletions
diff --git a/drivers/platform/x86/ibm_rtl.c b/drivers/platform/x86/ibm_rtl.c
index a884f5498846..5c975edb3c81 100644
--- a/drivers/platform/x86/ibm_rtl.c
+++ b/drivers/platform/x86/ibm_rtl.c
@@ -220,32 +220,13 @@ static void rtl_teardown_sysfs(void) {
220 sysdev_class_unregister(&class_rtl); 220 sysdev_class_unregister(&class_rtl);
221} 221}
222 222
223static int dmi_check_cb(const struct dmi_system_id *id)
224{
225 RTL_DEBUG("found IBM server '%s'\n", id->ident);
226 return 0;
227}
228
229#define ibm_dmi_entry(NAME, TYPE) \
230{ \
231 .ident = NAME, \
232 .matches = { \
233 DMI_MATCH(DMI_SYS_VENDOR, "IBM"), \
234 DMI_MATCH(DMI_PRODUCT_NAME, TYPE), \
235 }, \
236 .callback = dmi_check_cb \
237}
238 223
239static struct dmi_system_id __initdata ibm_rtl_dmi_table[] = { 224static struct dmi_system_id __initdata ibm_rtl_dmi_table[] = {
240 ibm_dmi_entry("BladeCenter LS21", "7971"), 225 { \
241 ibm_dmi_entry("BladeCenter LS22", "7901"), 226 .matches = { \
242 ibm_dmi_entry("BladeCenter HS21 XM", "7995"), 227 DMI_MATCH(DMI_SYS_VENDOR, "IBM"), \
243 ibm_dmi_entry("BladeCenter HS22", "7870"), 228 }, \
244 ibm_dmi_entry("BladeCenter HS22V", "7871"), 229 },
245 ibm_dmi_entry("System x3550 M2", "7946"),
246 ibm_dmi_entry("System x3650 M2", "7947"),
247 ibm_dmi_entry("System x3550 M3", "7944"),
248 ibm_dmi_entry("System x3650 M3", "7945"),
249 { } 230 { }
250}; 231};
251 232