PCI: Replace old style lock initializer
authorThomas Gleixner <tglx@linutronix.de>
Fri, 6 Nov 2009 22:41:23 +0000 (22:41 +0000)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 6 Nov 2009 23:06:27 +0000 (15:06 -0800)
SPIN_LOCK_UNLOCKED is deprecated. Use DEFINE_SPINLOCK instead.

Make the lock static while at it.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci.c

index f88de099ef43849fd4b991eeb88989a5275bda24..f36b4680651324151540d304b0c38b171527de0f 100644 (file)
@@ -2625,7 +2625,7 @@ int pci_set_vga_state(struct pci_dev *dev, bool decode,
 
 #define RESOURCE_ALIGNMENT_PARAM_SIZE COMMAND_LINE_SIZE
 static char resource_alignment_param[RESOURCE_ALIGNMENT_PARAM_SIZE] = {0};
-spinlock_t resource_alignment_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(resource_alignment_lock);
 
 /**
  * pci_specified_resource_alignment - get resource alignment specified by user.