ACPI: thinkpad-acpi: improve dock subdriver initialization
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 28 Apr 2007 01:00:15 +0000 (22:00 -0300)
committerLen Brown <len.brown@intel.com>
Sun, 29 Apr 2007 01:41:20 +0000 (21:41 -0400)
commitd94a7f16cad7700f8d2b142cc13cfba5387af3db
treec05c534bb1ef98a5c45321a107c8cd28894f0e84
parent5ae930e685018e2dc6d4139362213e4b283e5700
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>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/misc/thinkpad_acpi.c