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
b1440482
Commit
b1440482
authored
May 22, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] PCI: remove pci_insert_device() as no one uses it anymore.
parent
c6e19062
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
22 deletions
+0
-22
drivers/pci/hotplug.c
drivers/pci/hotplug.c
+0
-21
include/linux/pci.h
include/linux/pci.h
+0
-1
No files found.
drivers/pci/hotplug.c
View file @
b1440482
...
...
@@ -207,26 +207,6 @@ int pci_hotplug (struct device *dev, char **envp, int num_envp,
#endif
/* CONFIG_HOTPLUG */
/**
* pci_insert_device - insert a pci device
* @dev: the device to insert
* @bus: where to insert it
*
* Link the device to both the global PCI device chain and the
* per-bus list of devices, add the /proc entry.
*/
void
pci_insert_device
(
struct
pci_dev
*
dev
,
struct
pci_bus
*
bus
)
{
list_add_tail
(
&
dev
->
bus_list
,
&
bus
->
devices
);
list_add_tail
(
&
dev
->
global_list
,
&
pci_devices
);
#ifdef CONFIG_PROC_FS
pci_proc_attach_device
(
dev
);
#endif
/* add sysfs device files */
pci_create_sysfs_dev_files
(
dev
);
}
static
void
pci_free_resources
(
struct
pci_dev
*
dev
)
{
...
...
@@ -300,7 +280,6 @@ void pci_remove_behind_bridge(struct pci_dev *dev)
}
#ifdef CONFIG_HOTPLUG
EXPORT_SYMBOL
(
pci_insert_device
);
EXPORT_SYMBOL
(
pci_remove_bus_device
);
EXPORT_SYMBOL
(
pci_remove_behind_bridge
);
#endif
include/linux/pci.h
View file @
b1440482
...
...
@@ -660,7 +660,6 @@ void pci_enable_bridges(struct pci_bus *bus);
/* New-style probing supporting hot-pluggable devices */
int
pci_register_driver
(
struct
pci_driver
*
);
void
pci_unregister_driver
(
struct
pci_driver
*
);
void
pci_insert_device
(
struct
pci_dev
*
,
struct
pci_bus
*
);
void
pci_remove_bus_device
(
struct
pci_dev
*
);
void
pci_remove_behind_bridge
(
struct
pci_dev
*
);
struct
pci_driver
*
pci_dev_driver
(
const
struct
pci_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