From: Andrew Morton Date: Mon, 16 Jul 2007 06:39:40 +0000 (-0700) Subject: use no_pci_devices() in pci/search.c X-Git-Tag: v2.6.23-rc1~956 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=35ef63f635aa0e414ad6cdb2a4092e1caf99272c;p=linux-2.6-omap-h63xx.git use no_pci_devices() in pci/search.c We have an API function for this now. Cc: Zhang Yanmin Cc: Greg KH Cc: Bartlomiej Zolnierkiewicz Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/pci/search.c b/drivers/pci/search.c index 9f7090fa877..c6e79d01ce3 100644 --- a/drivers/pci/search.c +++ b/drivers/pci/search.c @@ -202,7 +202,7 @@ static struct pci_dev * pci_find_subsys(unsigned int vendor, * can cause some machines to crash. So here we detect and flag that * situation and bail out early. */ - if (unlikely(list_empty(&pci_devices))) + if (unlikely(no_pci_devices())) return NULL; down_read(&pci_bus_sem); n = from ? from->global_list.next : pci_devices.next; @@ -277,7 +277,7 @@ pci_get_subsys(unsigned int vendor, unsigned int device, * can cause some machines to crash. So here we detect and flag that * situation and bail out early. */ - if (unlikely(list_empty(&pci_devices))) + if (unlikely(no_pci_devices())) return NULL; down_read(&pci_bus_sem); n = from ? from->global_list.next : pci_devices.next;