ACPI: thinkpad-acpi: clean up probing and move init to subdrivers
commit82f2a71370c703722374ece21335a1e3821677d4
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>
Sat, 28 Apr 2007 17:28:06 +0000 (28 14:28 -0300)
treea167def479a3bd8c986fd713ef215a3bc6f9582c
parent01a2a8fb7155a94a5c34ef1da450b45ebc43b823
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