ACPI: thinkpad-acpi: uncouple subdriver init from ibms struct
authorHenrique de Moraes Holschuh <hmh@debian.org>
Sat, 21 Apr 2007 14:08:33 +0000 (11:08 -0300)
committerLen Brown <len.brown@intel.com>
Sun, 22 Apr 2007 03:30:33 +0000 (23:30 -0400)
commita5763f2223ce3fdbc75923f8c948fc7b59ed2f96
tree1995d92dbebe9727c9abb7107d9e1fa84ed2d792
parentfe08bc4b4fd1371fad111675a564e4d2ebbf39ea
ACPI: thinkpad-acpi: uncouple subdriver init from ibms struct

Move the .init method from ibms struct to another struct, and use a list
head to control which subdrivers have been activated.

This allows us to have the subdriver init methods marked __init, saving
quite a lot of .text size, and even a bit of .data size as some data can
now be made __initdata.

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
drivers/misc/thinkpad_acpi.h