From: Feng Tang Date: Thu, 23 Aug 2012 07:45:47 +0000 (+0800) Subject: PCI: Remove the obsolete no_pci_devices() check X-Git-Tag: next-20120910~88^2~1^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bde8fef3ed809b8a042046b9ae0680a0df7b35d7;p=karo-tx-linux.git PCI: Remove the obsolete no_pci_devices() check In function pci_get_subsys() there is a check: /* * pci_find_subsys() can be called on the ide_setup() path, * super-early in boot. But the down_read() will enable local * interrupts, which can cause some machines to crash. So here we * detect and flag that situation and bail out early. */ if (unlikely(no_pci_devices())) return NULL; But there is no ide_setup() now, and no down_read() either, which makes the check obsolete. So remove it. Signed-off-by: Feng Tang Signed-off-by: Bjorn Helgaas Cc: Andrew Morton Cc: Greg Kroah-Hartman --- diff --git a/drivers/pci/search.c b/drivers/pci/search.c index 78a08b1a0454..e6e604f51a50 100644 --- a/drivers/pci/search.c +++ b/drivers/pci/search.c @@ -247,15 +247,6 @@ struct pci_dev *pci_get_subsys(unsigned int vendor, unsigned int device, { struct pci_device_id id; - /* - * pci_find_subsys() can be called on the ide_setup() path, - * super-early in boot. But the down_read() will enable local - * interrupts, which can cause some machines to crash. So here we - * detect and flag that situation and bail out early. - */ - if (unlikely(no_pci_devices())) - return NULL; - id.vendor = vendor; id.device = device; id.subvendor = ss_vendor;