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
52d3f347
Commit
52d3f347
authored
Jun 03, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] PCI: remove usage of pci_for_each_dev() in drivers/macintosh/via-pmu.c
parent
a68ffd7b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/macintosh/via-pmu.c
drivers/macintosh/via-pmu.c
+6
-6
No files found.
drivers/macintosh/via-pmu.c
View file @
52d3f347
...
@@ -1713,10 +1713,10 @@ static void __pmac
...
@@ -1713,10 +1713,10 @@ static void __pmac
pbook_alloc_pci_save
(
void
)
pbook_alloc_pci_save
(
void
)
{
{
int
npci
;
int
npci
;
struct
pci_dev
*
pd
;
struct
pci_dev
*
pd
=
NULL
;
npci
=
0
;
npci
=
0
;
pci_for_each_dev
(
pd
)
{
while
((
pd
=
pci_find_device
(
PCI_ANY_ID
,
PCI_ANY_ID
,
pd
))
!=
NULL
)
{
++
npci
;
++
npci
;
}
}
if
(
npci
==
0
)
if
(
npci
==
0
)
...
@@ -1740,13 +1740,13 @@ static void __pmac
...
@@ -1740,13 +1740,13 @@ static void __pmac
pbook_pci_save
(
void
)
pbook_pci_save
(
void
)
{
{
struct
pci_save
*
ps
=
pbook_pci_saves
;
struct
pci_save
*
ps
=
pbook_pci_saves
;
struct
pci_dev
*
pd
;
struct
pci_dev
*
pd
=
NULL
;
int
npci
=
pbook_npci_saves
;
int
npci
=
pbook_npci_saves
;
if
(
ps
==
NULL
)
if
(
ps
==
NULL
)
return
;
return
;
pci_for_each_dev
(
pd
)
{
while
((
pd
=
pci_find_device
(
PCI_ANY_ID
,
PCI_ANY_ID
,
pd
))
!=
NULL
)
{
if
(
npci
--
==
0
)
if
(
npci
--
==
0
)
return
;
return
;
#ifndef HACKED_PCI_SAVE
#ifndef HACKED_PCI_SAVE
...
@@ -1772,11 +1772,11 @@ pbook_pci_restore(void)
...
@@ -1772,11 +1772,11 @@ pbook_pci_restore(void)
{
{
u16
cmd
;
u16
cmd
;
struct
pci_save
*
ps
=
pbook_pci_saves
-
1
;
struct
pci_save
*
ps
=
pbook_pci_saves
-
1
;
struct
pci_dev
*
pd
;
struct
pci_dev
*
pd
=
NULL
;
int
npci
=
pbook_npci_saves
;
int
npci
=
pbook_npci_saves
;
int
j
;
int
j
;
pci_for_each_dev
(
pd
)
{
while
((
pd
=
pci_find_device
(
PCI_ANY_ID
,
PCI_ANY_ID
,
pd
))
!=
NULL
)
{
#ifdef HACKED_PCI_SAVE
#ifdef HACKED_PCI_SAVE
int
i
;
int
i
;
if
(
npci
--
==
0
)
if
(
npci
--
==
0
)
...
...
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