Subject: [PATCH] [acpi power] Update power headaer - Add err() macro - Add ->p_refs to struct acpi_power for keeping track of how many times the power resource has been powered on. Signed-off-by: Patrick Mochel --- drivers/acpi/drivers/power/power.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) applies-to: 6565a29b6e99c46d4c5eee1d5089ffbcb12a57a0 ba3fb5400b6783e125cc9cf474735805a5831369 diff --git a/drivers/acpi/drivers/power/power.h b/drivers/acpi/drivers/power/power.h index b507a93..3b8b2af 100644 --- a/drivers/acpi/drivers/power/power.h +++ b/drivers/acpi/drivers/power/power.h @@ -6,6 +6,8 @@ #define dbg(fmt, ...) #endif +#define err(fmt, ...) printk(KERN_ERR PREFIX "power: " fmt "\n", ## __VA_ARGS__) + #define _COMPONENT ACPI_POWER_COMPONENT ACPI_MODULE_NAME("acpi_power"); @@ -15,6 +17,7 @@ ACPI_MODULE_NAME("acpi_power"); #define ACPI_POWER_RESOURCE_STATE_UNKNOWN 0xFF struct acpi_power { + u32 p_refs; struct acpi_dev * p_ad; u32 p_state; u32 p_power_state; --- 0.99.9.GIT