ACPI: thinkpad-acpi: clean up probing and move init to subdrivers
commita51a5a3f5af23a51e839f08412aa74ae5da284ca
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 10 Feb 2007 20:08:00 +0000 (10 18:08 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 9 Sep 2007 02:14:50 +0000 (8 23:14 -0300)
treebb6e656dbf1c846b6d65770c9dae82a1b212e502
parent927c246dcb5f670f8ba43b3fe3477bc056de76ca
ACPI: thinkpad-acpi: clean up probing and move init to subdrivers

Move most of the probing code to its own function, and most of the
subdriver-specific init code into subdriver init functions.

This allows us to not define pci_handle unless the dock subdriver is
enabled, as well.

This patch causes a minor userland interface change: if a subdriver doesn't
detect a capability, /proc entries for it are not created anymore (as
opposed to a /proc entry that just returned "unsupported").

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