ACPI: add ACPI bus_type for driver model
authorPatrick Mochel <mochel@linux.intel.com>
Thu, 7 Dec 2006 12:56:27 +0000 (20:56 +0800)
committerLen Brown <len.brown@intel.com>
Sat, 16 Dec 2006 04:38:34 +0000 (23:38 -0500)
commit5d9464a46918ced087c351a10f38cee95725f85b
treeacb45582f9c43a867a60cc5fa8ae2c6197dc1d2d
parentd43ec68e9837dfa6618ab473622683fdbf6e68a9
ACPI: add ACPI bus_type for driver model

Add ACPI bus_type for Linux driver model.

1. .shutdown method is added into acpi_driver.ops
needed by bus_type operations.
2. remove useless parameter 'int state' in .resume method.
3. change parameter 'int state'
to 'pm_message_t state' in .suspend method.

Note: The new .uevent method mark ACPI drivers by PNPID instead of by name.
Udev script needs to look for "HWID=" or "COMPTID=" to load
ACPI drivers as a result.

Signed-off-by: Li Shaohua <shaohua.li@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/battery.c
drivers/acpi/fan.c
drivers/acpi/scan.c
drivers/acpi/thermal.c
include/acpi/acpi_bus.h