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
4991bcbc
Commit
4991bcbc
authored
Mar 07, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Use pci_remove_bus_device to delete, found by Ben Collins.
parent
dce59451
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
arch/sparc64/kernel/pci_common.c
arch/sparc64/kernel/pci_common.c
+1
-15
No files found.
arch/sparc64/kernel/pci_common.c
View file @
4991bcbc
...
...
@@ -78,20 +78,6 @@ static int __init find_device_prom_node(struct pci_pbm_info *pbm,
return
0
;
}
/* Remove a PCI device from the device trees, then
* free it up. Note that this must run before
* the device's resources are registered because we
* do not handle unregistering them here.
*/
static
void
pci_device_delete
(
struct
pci_dev
*
pdev
)
{
list_del
(
&
pdev
->
global_list
);
list_del
(
&
pdev
->
bus_list
);
/* Ok, all references are gone, free it up. */
kfree
(
pdev
);
}
/* Older versions of OBP on PCI systems encode 64-bit MEM
* space assignments incorrectly, this fixes them up. We also
* take the opportunity here to hide other kinds of bogus
...
...
@@ -164,7 +150,7 @@ static void __init pdev_cookie_fillin(struct pci_pbm_info *pbm,
* second EBUS/HappyMeal pair if the external
* connector for it is not present.
*/
pci_
device_delet
e
(
pdev
);
pci_
remove_bus_devic
e
(
pdev
);
return
;
}
...
...
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