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
355db998
Commit
355db998
authored
Feb 14, 2006
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Explicitly init *nregs to 0 in find_device_prom_node().
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
987b6de7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
arch/sparc64/kernel/pci_common.c
arch/sparc64/kernel/pci_common.c
+3
-3
No files found.
arch/sparc64/kernel/pci_common.c
View file @
355db998
...
...
@@ -39,6 +39,8 @@ static int __init find_device_prom_node(struct pci_pbm_info *pbm,
{
int
node
;
*
nregs
=
0
;
/*
* Return the PBM's PROM node in case we are it's PCI device,
* as the PBM's reg property is different to standard PCI reg
...
...
@@ -51,10 +53,8 @@ static int __init find_device_prom_node(struct pci_pbm_info *pbm,
pdev
->
device
==
PCI_DEVICE_ID_SUN_SCHIZO
||
pdev
->
device
==
PCI_DEVICE_ID_SUN_TOMATILLO
||
pdev
->
device
==
PCI_DEVICE_ID_SUN_SABRE
||
pdev
->
device
==
PCI_DEVICE_ID_SUN_HUMMINGBIRD
))
{
*
nregs
=
0
;
pdev
->
device
==
PCI_DEVICE_ID_SUN_HUMMINGBIRD
))
return
bus_prom_node
;
}
node
=
prom_getchild
(
bus_prom_node
);
while
(
node
!=
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