summaryrefslogtreecommitdiff
path: root/arch/ppc/syslib/qspan_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc/syslib/qspan_pci.c')
-rw-r--r--arch/ppc/syslib/qspan_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ppc/syslib/qspan_pci.c b/arch/ppc/syslib/qspan_pci.c
index 57f4ed5e5ae1..0970b5d30391 100644
--- a/arch/ppc/syslib/qspan_pci.c
+++ b/arch/ppc/syslib/qspan_pci.c
@@ -94,7 +94,7 @@
#define mk_config_type1(bus, dev, offset) \
mk_config_addr(bus, dev, offset) | 1;
-static spinlock_t pcibios_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(pcibios_lock);
int qspan_pcibios_read_config_byte(unsigned char bus, unsigned char dev_fn,
unsigned char offset, unsigned char *val)