Commit 9d26f90e authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: change WARN_ON(irqs_disabled()) to WARN_ON(in_interrupt()) to...

[PATCH] PCI: change WARN_ON(irqs_disabled()) to WARN_ON(in_interrupt()) to keep the fusion drivers happy.
parent 8732dde8
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/interrupt.h>
spinlock_t pci_bus_lock = SPIN_LOCK_UNLOCKED; spinlock_t pci_bus_lock = SPIN_LOCK_UNLOCKED;
...@@ -66,7 +67,7 @@ pci_find_next_bus(const struct pci_bus *from) ...@@ -66,7 +67,7 @@ pci_find_next_bus(const struct pci_bus *from)
struct list_head *n; struct list_head *n;
struct pci_bus *b = NULL; struct pci_bus *b = NULL;
WARN_ON(irqs_disabled()); WARN_ON(in_interrupt());
spin_lock(&pci_bus_lock); spin_lock(&pci_bus_lock);
n = from ? from->node.next : pci_root_buses.next; n = from ? from->node.next : pci_root_buses.next;
if (n != &pci_root_buses) if (n != &pci_root_buses)
...@@ -125,7 +126,7 @@ pci_find_subsys(unsigned int vendor, unsigned int device, ...@@ -125,7 +126,7 @@ pci_find_subsys(unsigned int vendor, unsigned int device,
struct list_head *n; struct list_head *n;
struct pci_dev *dev; struct pci_dev *dev;
WARN_ON(irqs_disabled()); WARN_ON(in_interrupt());
spin_lock(&pci_bus_lock); spin_lock(&pci_bus_lock);
n = from ? from->global_list.next : pci_devices.next; n = from ? from->global_list.next : pci_devices.next;
...@@ -190,7 +191,7 @@ pci_get_subsys(unsigned int vendor, unsigned int device, ...@@ -190,7 +191,7 @@ pci_get_subsys(unsigned int vendor, unsigned int device,
struct list_head *n; struct list_head *n;
struct pci_dev *dev; struct pci_dev *dev;
WARN_ON(irqs_disabled()); WARN_ON(in_interrupt());
spin_lock(&pci_bus_lock); spin_lock(&pci_bus_lock);
n = from ? from->global_list.next : pci_devices.next; n = from ? from->global_list.next : pci_devices.next;
...@@ -256,7 +257,7 @@ pci_find_device_reverse(unsigned int vendor, unsigned int device, const struct p ...@@ -256,7 +257,7 @@ pci_find_device_reverse(unsigned int vendor, unsigned int device, const struct p
struct list_head *n; struct list_head *n;
struct pci_dev *dev; struct pci_dev *dev;
WARN_ON(irqs_disabled()); WARN_ON(in_interrupt());
spin_lock(&pci_bus_lock); spin_lock(&pci_bus_lock);
n = from ? from->global_list.prev : pci_devices.prev; n = from ? from->global_list.prev : pci_devices.prev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment