ACPI: thinkpad-acpi: improve dock subdriver initialization
commitc13f3621487aaf1be7aa9559d75bc05cb9372a90
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Thu, 26 Apr 2007 14:27:15 +0000 (26 11:27 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 7 Jul 2007 12:42:44 +0000 (7 09:42 -0300)
treea10fd11eccb7519673b0cb72832186f961ec1bd6
parent1e023aa43f3fdc5bfde59ad49c251112d7bb44c9
ACPI: thinkpad-acpi: improve dock subdriver initialization

The dock sub-driver has split-personality (two subdrivers), and it was
doing some unoptimal things on init because of that.  Fix it so that the
second half of it will only init when necessary, and only if the first half
initialized sucessfully in the first place.

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