ACPI: thinkpad-acpi: uncouple subdriver init from ibms struct
commit725c25b742e10bf8aa1926ecc56af897656b3be3
authorHenrique de Moraes Holschuh <hmh@debian.org>
Sat, 21 Apr 2007 13:02:58 +0000 (21 10:02 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 9 Sep 2007 02:14:50 +0000 (8 23:14 -0300)
treec03cc541162b6df4d2b480fa0c2d7434c9faf87e
parentb828c6e08dabfd33ab716ec6c6d8ce20d1fbd616
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>
drivers/misc/thinkpad_acpi.c
drivers/misc/thinkpad_acpi.h