thinkpad-acpi: disable broken bay and dock subdrivers
commit33ae95b771f7ed22841c729bbf34595b1552983f
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 1 Aug 2009 17:22:20 +0000 (1 14:22 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 1 Aug 2009 17:22:20 +0000 (1 14:22 -0300)
tree5a5ddac4b4afd1b0f284c3b98c7c7a3a8fdba309
parent526f8cda6f15215c9786ebb15a07e6bbe1bbb2c5
thinkpad-acpi: disable broken bay and dock subdrivers

Currently, the ThinkPad-ACPI bay and dock drivers are completely
broken, and cause a NULL pointer derreference in kernel mode (and,
therefore, an OOPS) when they try to issue events (i.e. on dock,
undock, bay ejection, etc).

OTOH, the standard ACPI dock driver can handle the hotplug bays and
docks of the ThinkPads just fine (including batteries) as of 2.6.27.
In fact, it does a much better job of it than thinkpad-acpi ever did.

It is just not worth the hassle to find a way to fix this crap without
breaking the (deprecated) thinkpad-acpi dock/bay ABI.  This is old,
deprecated code that sees little testing or use.

As a quick fix suitable for -stable backports, mark the thinkpad-acpi
bay and dock subdrivers as BROKEN in Kconfig.  The dead code will be
removed by a later patch.

This fixes bugzilla #13669, and should be applied to 2.6.27 and later.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Reported-by: Joerg Platte <jplatte@naasa.net>
Cc: stable@kernel.org
drivers/platform/x86/Kconfig