]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PCI: Remove the obsolete no_pci_devices() check
authorFeng Tang <feng.tang@intel.com>
Thu, 23 Aug 2012 07:45:47 +0000 (15:45 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 24 Aug 2012 18:36:17 +0000 (12:36 -0600)
commitbde8fef3ed809b8a042046b9ae0680a0df7b35d7
treec963641bc3a1d6a09f8ca07a2599bb4139a9bd04
parentccee7d23102f5e5765ec24779c5b77472af8f79e
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>
drivers/pci/search.c