aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAndrey Panin <pazke@donpac.ru>2005-06-25 17:54:46 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-25 19:24:28 -0400
commitb625883f24d018c989173aeb727f6de954fb154d (patch)
tree6ba9a6cee82171d47461c67e70c783eb7708e1b9 /arch
parent0f8133a8db81ff824a4abbe5bb0f15bf034d31c3 (diff)
[PATCH] dmi: remove central blacklist
Since last dmi quirk looks useless (it just prints 404 compliant url) we can finally remove central dmi blacklist. Signed-off-by: Andrey Panin <pazke@donpac.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/i386/kernel/dmi_scan.c45
1 files changed, 1 insertions, 44 deletions
diff --git a/arch/i386/kernel/dmi_scan.c b/arch/i386/kernel/dmi_scan.c
index 065c30a73c13..ad4b369a5837 100644
--- a/arch/i386/kernel/dmi_scan.c
+++ b/arch/i386/kernel/dmi_scan.c
@@ -160,50 +160,10 @@ static void __init dmi_save_ident(struct dmi_header *dm, int slot, int string)
160} 160}
161 161
162/* 162/*
163 * Ugly compatibility crap.
164 */
165#define dmi_blacklist dmi_system_id
166#define NO_MATCH { DMI_NONE, NULL}
167#define MATCH DMI_MATCH
168
169/*
170 * Toshiba keyboard likes to repeat keys when they are not repeated.
171 */
172
173static __init int broken_toshiba_keyboard(struct dmi_blacklist *d)
174{
175 printk(KERN_WARNING "Toshiba with broken keyboard detected. If your keyboard sometimes generates 3 keypresses instead of one, see http://davyd.ucc.asn.au/projects/toshiba/README\n");
176 return 0;
177}
178
179
180
181/*
182 * Process the DMI blacklists
183 */
184
185
186/*
187 * This will be expanded over time to force things like the APM
188 * interrupt mask settings according to the laptop
189 */
190
191static __initdata struct dmi_blacklist dmi_blacklist[]={
192
193 { broken_toshiba_keyboard, "Toshiba Satellite 4030cdt", { /* Keyboard generates spurious repeats */
194 MATCH(DMI_PRODUCT_NAME, "S4030CDT/4.3"),
195 NO_MATCH, NO_MATCH, NO_MATCH
196 } },
197
198 { NULL, }
199};
200
201/*
202 * Process a DMI table entry. Right now all we care about are the BIOS 163 * Process a DMI table entry. Right now all we care about are the BIOS
203 * and machine entries. For 2.5 we should pull the smbus controller info 164 * and machine entries. For 2.5 we should pull the smbus controller info
204 * out of here. 165 * out of here.
205 */ 166 */
206
207static void __init dmi_decode(struct dmi_header *dm) 167static void __init dmi_decode(struct dmi_header *dm)
208{ 168{
209#ifdef DMI_DEBUG 169#ifdef DMI_DEBUG
@@ -253,10 +213,7 @@ static void __init dmi_decode(struct dmi_header *dm)
253 213
254void __init dmi_scan_machine(void) 214void __init dmi_scan_machine(void)
255{ 215{
256 int err = dmi_iterate(dmi_decode); 216 if (dmi_iterate(dmi_decode))
257 if(err == 0)
258 dmi_check_system(dmi_blacklist);
259 else
260 printk(KERN_INFO "DMI not present.\n"); 217 printk(KERN_INFO "DMI not present.\n");
261} 218}
262 219