Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
f6139849
Commit
f6139849
authored
Nov 11, 2008
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'power' into release
parents
3e0fe364
676962da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
drivers/acpi/power.c
drivers/acpi/power.c
+2
-6
No files found.
drivers/acpi/power.c
View file @
f6139849
...
@@ -152,7 +152,8 @@ static int acpi_power_get_state(acpi_handle handle, int *state)
...
@@ -152,7 +152,8 @@ static int acpi_power_get_state(acpi_handle handle, int *state)
ACPI_POWER_RESOURCE_STATE_OFF
;
ACPI_POWER_RESOURCE_STATE_OFF
;
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"Resource [%s] is %s
\n
"
,
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"Resource [%s] is %s
\n
"
,
acpi_ut_get_node_name
(
handle
),
state
?
"on"
:
"off"
));
acpi_ut_get_node_name
(
handle
),
*
state
?
"on"
:
"off"
));
return
0
;
return
0
;
}
}
...
@@ -515,11 +516,6 @@ int acpi_power_transition(struct acpi_device *device, int state)
...
@@ -515,11 +516,6 @@ int acpi_power_transition(struct acpi_device *device, int state)
cl
=
&
device
->
power
.
states
[
device
->
power
.
state
].
resources
;
cl
=
&
device
->
power
.
states
[
device
->
power
.
state
].
resources
;
tl
=
&
device
->
power
.
states
[
state
].
resources
;
tl
=
&
device
->
power
.
states
[
state
].
resources
;
if
(
!
cl
->
count
&&
!
tl
->
count
)
{
result
=
-
ENODEV
;
goto
end
;
}
/* TBD: Resources must be ordered. */
/* TBD: Resources must be ordered. */
/*
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment