Commit bc338cbe authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Greg Kroah-Hartman

[PATCH] PCI: Lock initializer cleanup - batch 4

Use the new lock initializers DEFINE_SPIN_LOCK and DEFINE_RW_LOCK
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent c9cdd12c
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* configuration space. * configuration space.
*/ */
static spinlock_t pci_lock = SPIN_LOCK_UNLOCKED; static DEFINE_SPINLOCK(pci_lock);
/* /*
* Wrappers for all PCI configuration access functions. They just check * Wrappers for all PCI configuration access functions. They just check
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include "msi.h" #include "msi.h"
static spinlock_t msi_lock = SPIN_LOCK_UNLOCKED; static DEFINE_SPINLOCK(msi_lock);
static struct msi_desc* msi_desc[NR_IRQS] = { [0 ... NR_IRQS-1] = NULL }; static struct msi_desc* msi_desc[NR_IRQS] = { [0 ... NR_IRQS-1] = NULL };
static kmem_cache_t* msi_cachep; static kmem_cache_t* msi_cachep;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include "pci.h" #include "pci.h"
spinlock_t pci_bus_lock = SPIN_LOCK_UNLOCKED; DEFINE_SPINLOCK(pci_bus_lock);
static struct pci_bus * __devinit static struct pci_bus * __devinit
pci_do_find_bus(struct pci_bus* bus, unsigned char busnr) pci_do_find_bus(struct pci_bus* bus, unsigned char busnr)
......
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