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
0003fb89
Commit
0003fb89
authored
Jun 09, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] PCI: remove some pci_bus_b() calls in drivers/pci/power.c
parent
6ed53ded
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
drivers/pci/power.c
drivers/pci/power.c
+6
-12
No files found.
drivers/pci/power.c
View file @
0003fb89
...
...
@@ -97,12 +97,10 @@ static int pci_pm_resume_bus(struct pci_bus *bus)
static
int
pci_pm_save_state
(
u32
state
)
{
struct
list_head
*
list
;
struct
pci_bus
*
bus
;
struct
pci_bus
*
bus
=
NULL
;
int
error
=
0
;
list_for_each
(
list
,
&
pci_root_buses
)
{
bus
=
pci_bus_b
(
list
);
while
((
bus
=
pci_find_next_bus
(
bus
))
!=
NULL
)
{
error
=
pci_pm_save_state_bus
(
bus
,
state
);
if
(
!
error
)
error
=
pci_pm_save_state_device
(
bus
->
self
,
state
);
...
...
@@ -112,11 +110,9 @@ static int pci_pm_save_state(u32 state)
static
int
pci_pm_suspend
(
u32
state
)
{
struct
list_head
*
list
;
struct
pci_bus
*
bus
;
struct
pci_bus
*
bus
=
NULL
;
list_for_each
(
list
,
&
pci_root_buses
)
{
bus
=
pci_bus_b
(
list
);
while
((
bus
=
pci_find_next_bus
(
bus
))
!=
NULL
)
{
pci_pm_suspend_bus
(
bus
,
state
);
pci_pm_suspend_device
(
bus
->
self
,
state
);
}
...
...
@@ -125,11 +121,9 @@ static int pci_pm_suspend(u32 state)
static
int
pci_pm_resume
(
void
)
{
struct
list_head
*
list
;
struct
pci_bus
*
bus
;
struct
pci_bus
*
bus
=
NULL
;
list_for_each
(
list
,
&
pci_root_buses
)
{
bus
=
pci_bus_b
(
list
);
while
((
bus
=
pci_find_next_bus
(
bus
))
!=
NULL
)
{
pci_pm_resume_device
(
bus
->
self
);
pci_pm_resume_bus
(
bus
);
}
...
...
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