aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-11-06 17:41:23 -0500
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-11-06 18:06:27 -0500
commite9d1e4921d5b62a80ed02851639249e2548d24f1 (patch)
tree5fff809404f6de05ad610cffcb5b912c7dc049f3 /drivers/pci/pci.c
parent5b5d94487d934be6b0aa966c9acbdf15b07ef627 (diff)
PCI: Replace old style lock initializer
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>
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r--drivers/pci/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index f88de099ef43..f36b46806513 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -2625,7 +2625,7 @@ int pci_set_vga_state(struct pci_dev *dev, bool decode,
2625 2625
2626#define RESOURCE_ALIGNMENT_PARAM_SIZE COMMAND_LINE_SIZE 2626#define RESOURCE_ALIGNMENT_PARAM_SIZE COMMAND_LINE_SIZE
2627static char resource_alignment_param[RESOURCE_ALIGNMENT_PARAM_SIZE] = {0}; 2627static char resource_alignment_param[RESOURCE_ALIGNMENT_PARAM_SIZE] = {0};
2628spinlock_t resource_alignment_lock = SPIN_LOCK_UNLOCKED; 2628static DEFINE_SPINLOCK(resource_alignment_lock);
2629 2629
2630/** 2630/**
2631 * pci_specified_resource_alignment - get resource alignment specified by user. 2631 * pci_specified_resource_alignment - get resource alignment specified by user.