diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-09 14:55:14 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-09 14:55:14 -0500 |
commit | a3a798c88a14b35e5d4ca30716dbc9eb9a1ddfe2 (patch) | |
tree | 393969a0f1405237483c8c29b904690f2bb90559 /drivers/acpi/power.c | |
parent | efcb3cf7f00c3c424db012380a8a974c2676a3c8 (diff) | |
parent | d97c0defba25a959a990f6d4759f43075540832e (diff) |
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (94 commits)
ACPICA: hide private headers
ACPICA: create acpica/ directory
ACPI: fix build warning
ACPI : Use RSDT instead of XSDT by adding boot option of "acpi=rsdt"
ACPI: Avoid array address overflow when _CST MWAIT hint bits are set
fujitsu-laptop: Simplify SBLL/SBL2 backlight handling
fujitsu-laptop: Add BL power, LED control and radio state information
ACPICA: delete utcache.c
ACPICA: delete acdisasm.h
ACPICA: Update version to 20081204.
ACPICA: FADT: Update error msgs for consistency
ACPICA: FADT: set acpi_gbl_use_default_register_widths to TRUE by default
ACPICA: FADT parsing changes and fixes
ACPICA: Add ACPI_MUTEX_TYPE configuration option
ACPICA: Fixes for various ACPI data tables
ACPICA: Restructure includes into public/private
ACPI: remove private acpica headers from driver files
ACPI: reboot.c: use new acpi_reset interface
ACPICA: New: acpi_reset interface - write to reset register
ACPICA: Move all public H/W interfaces to new hwxface
...
Diffstat (limited to 'drivers/acpi/power.c')
-rw-r--r-- | drivers/acpi/power.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c index bb7d50dd2818..c926e7d4a0d6 100644 --- a/drivers/acpi/power.c +++ b/drivers/acpi/power.c | |||
@@ -139,6 +139,8 @@ static int acpi_power_get_state(acpi_handle handle, int *state) | |||
139 | { | 139 | { |
140 | acpi_status status = AE_OK; | 140 | acpi_status status = AE_OK; |
141 | unsigned long long sta = 0; | 141 | unsigned long long sta = 0; |
142 | char node_name[5]; | ||
143 | struct acpi_buffer buffer = { sizeof(node_name), node_name }; | ||
142 | 144 | ||
143 | 145 | ||
144 | if (!handle || !state) | 146 | if (!handle || !state) |
@@ -151,8 +153,10 @@ static int acpi_power_get_state(acpi_handle handle, int *state) | |||
151 | *state = (sta & 0x01)?ACPI_POWER_RESOURCE_STATE_ON: | 153 | *state = (sta & 0x01)?ACPI_POWER_RESOURCE_STATE_ON: |
152 | ACPI_POWER_RESOURCE_STATE_OFF; | 154 | ACPI_POWER_RESOURCE_STATE_OFF; |
153 | 155 | ||
156 | acpi_get_name(handle, ACPI_SINGLE_NAME, &buffer); | ||
157 | |||
154 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Resource [%s] is %s\n", | 158 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Resource [%s] is %s\n", |
155 | acpi_ut_get_node_name(handle), | 159 | node_name, |
156 | *state ? "on" : "off")); | 160 | *state ? "on" : "off")); |
157 | 161 | ||
158 | return 0; | 162 | return 0; |