ACPI: thinkpad-acpi: clean up probing and move init to subdrivers
commit066e845670fe789548ee5da164d2bb68010b643f
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 10 Feb 2007 22:08:00 +0000 (10 20:08 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 23 Sep 2007 12:30:26 +0000 (23 09:30 -0300)
treeb1761652c6ae7b9aab0f2a0cf4cd60ca8c59b3fb
parent0cf071379a6c0c8242a11b6b1c0ad96b3b307297
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