aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorFeng Tang <feng.tang@intel.com>2012-08-23 03:45:47 -0400
committerBjorn Helgaas <bhelgaas@google.com>2012-09-10 18:23:29 -0400
commite9bf1040f649d89db3c2e060d1b0b56665a4fb93 (patch)
treee57bdedeaa94fc087b9e6fef82d270bc1bf03546 /drivers/pci
parentb9443f401bb20ae6414e3e68bca0413bad28b689 (diff)
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 <feng.tang@intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/search.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/pci/search.c b/drivers/pci/search.c
index 9148b6e8056b..d84a2f8cc12a 100644
--- a/drivers/pci/search.c
+++ b/drivers/pci/search.c
@@ -252,15 +252,6 @@ struct pci_dev *pci_get_subsys(unsigned int vendor, unsigned int device,
252 .subdevice = ss_device, 252 .subdevice = ss_device,
253 }; 253 };
254 254
255 /*
256 * pci_find_subsys() can be called on the ide_setup() path,
257 * super-early in boot. But the down_read() will enable local
258 * interrupts, which can cause some machines to crash. So here we
259 * detect and flag that situation and bail out early.
260 */
261 if (unlikely(no_pci_devices()))
262 return NULL;
263
264 return pci_get_dev_by_id(&id, from); 255 return pci_get_dev_by_id(&id, from);
265} 256}
266 257