Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
cb2ebc59
Commit
cb2ebc59
authored
Mar 09, 2007
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Pull bugzilla-7570 into release branch
parents
3dfb7379
72925760
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
drivers/acpi/power.c
drivers/acpi/power.c
+7
-6
No files found.
drivers/acpi/power.c
View file @
cb2ebc59
...
@@ -436,8 +436,6 @@ int acpi_power_transition(struct acpi_device *device, int state)
...
@@ -436,8 +436,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
;
device
->
power
.
state
=
ACPI_STATE_UNKNOWN
;
if
(
!
cl
->
count
&&
!
tl
->
count
)
{
if
(
!
cl
->
count
&&
!
tl
->
count
)
{
result
=
-
ENODEV
;
result
=
-
ENODEV
;
goto
end
;
goto
end
;
...
@@ -468,12 +466,15 @@ int acpi_power_transition(struct acpi_device *device, int state)
...
@@ -468,12 +466,15 @@ int acpi_power_transition(struct acpi_device *device, int state)
goto
end
;
goto
end
;
}
}
/* We shouldn't change the state till all above operations succeed */
end:
device
->
power
.
state
=
state
;
if
(
result
)
{
end:
device
->
power
.
state
=
ACPI_STATE_UNKNOWN
;
if
(
result
)
printk
(
KERN_WARNING
PREFIX
"Transitioning device [%s] to D%d
\n
"
,
printk
(
KERN_WARNING
PREFIX
"Transitioning device [%s] to D%d
\n
"
,
device
->
pnp
.
bus_id
,
state
);
device
->
pnp
.
bus_id
,
state
);
}
else
{
/* We shouldn't change the state till all above operations succeed */
device
->
power
.
state
=
state
;
}
return
result
;
return
result
;
}
}
...
...
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