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
31250cfd
Commit
31250cfd
authored
Jun 19, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PCI: merge bits missed from the pci locking patch.
parent
60923013
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
drivers/pci/bus.c
drivers/pci/bus.c
+6
-0
No files found.
drivers/pci/bus.c
View file @
31250cfd
...
@@ -93,7 +93,11 @@ void __devinit pci_bus_add_devices(struct pci_bus *bus)
...
@@ -93,7 +93,11 @@ void __devinit pci_bus_add_devices(struct pci_bus *bus)
continue
;
continue
;
device_add
(
&
dev
->
dev
);
device_add
(
&
dev
->
dev
);
spin_lock
(
&
pci_bus_lock
);
list_add_tail
(
&
dev
->
global_list
,
&
pci_devices
);
list_add_tail
(
&
dev
->
global_list
,
&
pci_devices
);
spin_unlock
(
&
pci_bus_lock
);
pci_proc_attach_device
(
dev
);
pci_proc_attach_device
(
dev
);
pci_create_sysfs_dev_files
(
dev
);
pci_create_sysfs_dev_files
(
dev
);
...
@@ -108,7 +112,9 @@ void __devinit pci_bus_add_devices(struct pci_bus *bus)
...
@@ -108,7 +112,9 @@ void __devinit pci_bus_add_devices(struct pci_bus *bus)
* it and then scan for unattached PCI devices.
* it and then scan for unattached PCI devices.
*/
*/
if
(
dev
->
subordinate
&&
list_empty
(
&
dev
->
subordinate
->
node
))
{
if
(
dev
->
subordinate
&&
list_empty
(
&
dev
->
subordinate
->
node
))
{
spin_lock
(
&
pci_bus_lock
);
list_add_tail
(
&
dev
->
subordinate
->
node
,
&
dev
->
bus
->
children
);
list_add_tail
(
&
dev
->
subordinate
->
node
,
&
dev
->
bus
->
children
);
spin_unlock
(
&
pci_bus_lock
);
pci_bus_add_devices
(
dev
->
subordinate
);
pci_bus_add_devices
(
dev
->
subordinate
);
}
}
}
}
...
...
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