diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-14 17:56:56 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-21 00:47:00 -0400 |
commit | 8a1bc9013a03d41a0e36ee413bb6f97281b30bd1 (patch) | |
tree | 83c01850e1779e37be1d9db0f87436b09b89f3fe /drivers/pci/probe.c | |
parent | 70308923d317f2ad4973c30d90bb48ae38761317 (diff) |
PCI: add is_added flag to struct pci_dev
This lets us check if the device is really added to the driver core or
not, which is what we need when walking some of the bus lists. The flag
is there in anticipation of getting rid of the other PCI device list,
which is what we used to check in this situation.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r-- | drivers/pci/probe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 387fbbb97431..7217f4283ce8 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
@@ -984,7 +984,7 @@ EXPORT_SYMBOL(pci_scan_single_device); | |||
984 | * | 984 | * |
985 | * Scan a PCI slot on the specified PCI bus for devices, adding | 985 | * Scan a PCI slot on the specified PCI bus for devices, adding |
986 | * discovered devices to the @bus->devices list. New devices | 986 | * discovered devices to the @bus->devices list. New devices |
987 | * will have an empty dev->global_list head. | 987 | * will not have is_added set. |
988 | */ | 988 | */ |
989 | int pci_scan_slot(struct pci_bus *bus, int devfn) | 989 | int pci_scan_slot(struct pci_bus *bus, int devfn) |
990 | { | 990 | { |