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
c4bdf207
Commit
c4bdf207
authored
Jun 03, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ACPI PCI Hotplug: remove hand made pci_find_bus function
parent
9cc268e9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
25 deletions
+1
-25
drivers/hotplug/acpiphp_glue.c
drivers/hotplug/acpiphp_glue.c
+1
-25
No files found.
drivers/hotplug/acpiphp_glue.c
View file @
c4bdf207
...
...
@@ -281,30 +281,6 @@ decode_acpi_resource (struct acpi_resource *resource, void *context)
return
AE_OK
;
}
/* find pci_bus structure associated to specific bus number */
static
struct
pci_bus
*
find_pci_bus
(
const
struct
list_head
*
list
,
int
bus
)
{
const
struct
list_head
*
l
;
list_for_each
(
l
,
list
)
{
struct
pci_bus
*
b
=
pci_bus_b
(
l
);
if
(
b
->
number
==
bus
)
return
b
;
if
(
!
list_empty
(
&
b
->
children
))
{
/* XXX recursive call */
b
=
find_pci_bus
(
&
b
->
children
,
bus
);
if
(
b
)
return
b
;
}
}
return
NULL
;
}
/* decode ACPI 2.0 _HPP hot plug parameters */
static
void
decode_hpp
(
struct
acpiphp_bridge
*
bridge
)
{
...
...
@@ -409,7 +385,7 @@ static void add_host_bridge (acpi_handle *handle, int seg, int bus)
bridge
->
seg
=
seg
;
bridge
->
bus
=
bus
;
bridge
->
pci_bus
=
find_pci_bus
(
&
pci_root_buses
,
bus
);
bridge
->
pci_bus
=
pci_find_bus
(
bus
);
bridge
->
res_lock
=
SPIN_LOCK_UNLOCKED
;
...
...
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