PCI: Add pci_last_busno() helper
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Thu, 19 Feb 2009 15:20:41 +0000 (18:20 +0300)
committerKim Phillips <kim.phillips@freescale.com>
Mon, 23 Feb 2009 21:51:10 +0000 (15:51 -0600)
commitcc2a8c7751ddbae3116660064f446888538b93e9
treeba61cef3f050c33d99558d99da8e56e773413e0b
parent741a1ea97335c88747a2de6677b92458d6ada00b
PCI: Add pci_last_busno() helper

This is just a handy routine that reports last PCI busno: we walk
down all the hoses and return last hose's last_busno.

Will be used by PCI/PCIe initialization code.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
drivers/pci/pci.c
include/pci.h