From: Thomas Gleixner Date: Fri, 6 Nov 2009 22:41:23 +0000 (+0000) Subject: PCI: Replace old style lock initializer X-Git-Tag: MMI-PSA29.97-13-9~25687^2~57 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e9d1e4921d5b62a80ed02851639249e2548d24f1;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Jesse Barnes --- 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, #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.