thinkpad-acpi: constrain IBM-era support to IBM boxes
commitf79ee9909a390423cafa9e2a744a905c6ec5be06
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 16 May 2010 20:56:03 +0000 (16 17:56 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 16 May 2010 20:56:03 +0000 (16 17:56 -0300)
tree3953c523d4225f1b3369038892bed63a035a06f4
parent9f7e4cfa363f1916aeef641bd44349cc06ef8440
thinkpad-acpi: constrain IBM-era support to IBM boxes

Lenovo is playing around with its ACPI BIOS, and will end up reusing
method names.  Their memory is not nearly as long as thinkpad-acpi's...

Secure most of the old IBM codepaths against running in a non-IBM box.
This would happen on the Lenovo X100e in video_init(), for example.  We
would misdetect it as an ancient model 570 firmware.

Also, refuse to load the driver if we cannot identify the vendor.  No
ACPI ThinkPad in existence lacks this information, AFAIK.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
drivers/platform/x86/thinkpad_acpi.c