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
Kirill Smelkov
linux
Commits
b1ac8feb
Commit
b1ac8feb
authored
Oct 20, 2003
by
Len Brown
Committed by
Len Brown
Oct 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ACPI] Broken fan detection prevents booting (Shaohua David Li)
http://bugme.osdl.org/show_bug.cgi?id=1185
parent
cb24b980
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
drivers/acpi/power.c
drivers/acpi/power.c
+5
-2
No files found.
drivers/acpi/power.c
View file @
b1ac8feb
...
...
@@ -337,6 +337,9 @@ acpi_power_transition (
if
(
!
device
||
(
state
<
ACPI_STATE_D0
)
||
(
state
>
ACPI_STATE_D3
))
return_VALUE
(
-
EINVAL
);
if
((
device
->
power
.
state
<
ACPI_STATE_D0
)
||
(
device
->
power
.
state
>
ACPI_STATE_D3
))
return_VALUE
(
-
ENODEV
);
cl
=
&
device
->
power
.
states
[
device
->
power
.
state
].
resources
;
tl
=
&
device
->
power
.
states
[
state
].
resources
;
...
...
@@ -359,8 +362,6 @@ acpi_power_transition (
goto
end
;
}
device
->
power
.
state
=
state
;
/*
* Then we dereference all power resources used in the current list.
*/
...
...
@@ -370,6 +371,8 @@ acpi_power_transition (
goto
end
;
}
/* We shouldn't change the state till all above operations succeed */
device
->
power
.
state
=
state
;
end:
if
(
result
)
ACPI_DEBUG_PRINT
((
ACPI_DB_WARN
,
...
...
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