summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ncr53c8xx.c
diff options
context:
space:
mode:
authorGu Zheng <guz.fnst@cn.fujitsu.com>2013-05-25 15:48:30 +0200
committerBjorn Helgaas <bhelgaas@google.com>2013-05-28 00:23:28 +0200
commit3c6e6ae770f338ef3e54c5823c21063204f53537 (patch)
tree7460a7cdf07d4e2a734b9c39706b34ab85b6e05f /drivers/scsi/ncr53c8xx.c
parentPCI: Introduce pci_bus_{get|put}() to manage PCI bus reference count (diff)
downloadlinux-3c6e6ae770f338ef3e54c5823c21063204f53537.tar.xz
linux-3c6e6ae770f338ef3e54c5823c21063204f53537.zip
PCI: Introduce pci_alloc_dev(struct pci_bus*) to replace alloc_pci_dev()
Here we introduce a new interface to replace alloc_pci_dev(): struct pci_dev *pci_alloc_dev(struct pci_bus *bus) It takes a "struct pci_bus *" argument, so we can alloc a PCI device on a target PCI bus, and it acquires a reference on the pci_bus. We use pci_alloc_dev(NULL) to simplify the old alloc_pci_dev(), and keep it for a while but mark it as __deprecated. Holding a reference to the pci_bus ensures that referencing pci_dev->bus is valid as long as the pci_dev is valid. [bhelgaas: keep existing "return error early" structure in pci_alloc_dev()] Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com> Signed-off-by: Jiang Liu <jiang.liu@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/scsi/ncr53c8xx.c')
0 files changed, 0 insertions, 0 deletions