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
d4becc82
Commit
d4becc82
authored
Jan 23, 2004
by
Len Brown
Committed by
Len Brown
Jan 23, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ACPI] acpi_bus_add() ignored _STA's return value
from Bjorn Helgaas
parent
28abb66f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/acpi/scan.c
drivers/acpi/scan.c
+4
-4
No files found.
drivers/acpi/scan.c
View file @
d4becc82
...
@@ -706,11 +706,11 @@ acpi_bus_add (
...
@@ -706,11 +706,11 @@ acpi_bus_add (
switch
(
type
)
{
switch
(
type
)
{
case
ACPI_BUS_TYPE_DEVICE
:
case
ACPI_BUS_TYPE_DEVICE
:
result
=
acpi_bus_get_status
(
device
);
result
=
acpi_bus_get_status
(
device
);
if
(
!
result
)
if
(
ACPI_FAILURE
(
result
)
||
!
device
->
status
.
present
)
{
break
;
if
(
!
device
->
status
.
present
)
result
=
-
ENOENT
;
result
=
-
ENOENT
;
goto
end
;
goto
end
;
}
break
;
default:
default:
STRUCT_TO_INT
(
device
->
status
)
=
0x0F
;
STRUCT_TO_INT
(
device
->
status
)
=
0x0F
;
break
;
break
;
...
...
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