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
fd53fcd8
Commit
fd53fcd8
authored
Jun 04, 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 arch/ppc/platforms/pmac_pci.c
parent
c47116cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
arch/ppc/platforms/pmac_pci.c
arch/ppc/platforms/pmac_pci.c
+4
-4
No files found.
arch/ppc/platforms/pmac_pci.c
View file @
fd53fcd8
...
...
@@ -494,7 +494,7 @@ add_bridges(struct device_node *dev)
static
void
__init
pcibios_fixup_OF_interrupts
(
void
)
{
struct
pci_dev
*
dev
;
struct
pci_dev
*
dev
=
NULL
;
/*
* Open Firmware often doesn't initialize the
...
...
@@ -502,7 +502,7 @@ pcibios_fixup_OF_interrupts(void)
* should find the device node and apply the interrupt
* obtained from the OF device-tree
*/
pci_for_each_dev
(
dev
)
{
while
((
dev
=
pci_find_device
(
PCI_ANY_ID
,
PCI_ANY_ID
,
dev
))
!=
NULL
)
{
struct
device_node
*
node
;
node
=
pci_device_to_OF_node
(
dev
);
/* this is the node, see if it has interrupts */
...
...
@@ -590,7 +590,7 @@ pmac_pcibios_after_init(void)
struct
device_node
*
nd
;
#ifdef CONFIG_BLK_DEV_IDE
struct
pci_dev
*
dev
;
struct
pci_dev
*
dev
=
NULL
;
/* OF fails to initialize IDE controllers on macs
* (and maybe other machines)
...
...
@@ -602,7 +602,7 @@ pmac_pcibios_after_init(void)
*
* -- BenH
*/
pci_for_each_dev
(
dev
)
{
while
((
dev
=
pci_find_device
(
PCI_ANY_ID
,
PCI_ANY_ID
,
dev
))
!=
NULL
)
{
if
((
dev
->
class
>>
16
)
==
PCI_BASE_CLASS_STORAGE
)
pci_enable_device
(
dev
);
}
...
...
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