]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Document reason for using pci_is_root_bus()
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 24 Sep 2013 21:14:57 +0000 (15:14 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 25 Sep 2013 21:43:58 +0000 (15:43 -0600)
commit9802a0335221fb6b07b8959617d90e702cad6891
tree78fc61e77d3976560185ac61c7944755a7009502
parented0a909c9fdcd0cf759018fa1d2e87e142956ed5
PCI: Document reason for using pci_is_root_bus()

Some code assumes "bus->self == NULL" means the bus is a root bus.  This
adds a comment explaining why this is incorrect ("virtual" buses added for
SR-IOV have "bus->self == NULL" but are not root buses).

No functional change.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
include/linux/pci.h