Skip to contentSkip to conversation

Change deprecated SPIN_LOCK_UNLOCKED for static intialization of

PATCH Pradeep Singh Rautela 1 participant 2 messages May 29, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

arm: Replace deprecated SPIN_LOCK_UNLOCKED for static initialization of lock to .lock = __SPIN_LOCK_UNLOCKED.

PATCH FOLLOWS

KernelVersion: 2.6.26-rc4

---
 arch/arm/kernel/irq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/kernel/irq.c +1 -1
index 11dcd52..8d3188e 100644
@@ -100,7 +100,7 @@ unlock:
 /* Handle bad interrupts */
 static struct irq_desc bad_irq_desc = {
 	.handle_irq = handle_bad_irq,
-	.lock = SPIN_LOCK_UNLOCKED
+	.lock = __SPIN_LOCK_UNLOCKED(bad_irq_desc.lock),
 };
 
 /*
Signature · 1 line
1.5.5.1
#1 lore raw

Convert deprecated SPIN_LOCK_UNLOCKED for static intialization of lock to .lock = __SPIN_LOCK_UNLOCKED.

---
 arch/arm/kernel/irq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/kernel/irq.c +1 -1
index 11dcd52..8d3188e 100644
@@ -100,7 +100,7 @@ unlock:
 /* Handle bad interrupts */
 static struct irq_desc bad_irq_desc = {
 	.handle_irq = handle_bad_irq,
-	.lock = SPIN_LOCK_UNLOCKED
+	.lock = __SPIN_LOCK_UNLOCKED(bad_irq_desc.lock),
 };
 
 /*
Signature · 1 line
1.5.5.1