Skip to contentSkip to conversation

PPC: Use newer, non-deprecated __SPIN_LOCK_UNLOCKED macro.

PATCH New Robert P. J. Day 1 participant 1 message Mar 15, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC: Use newer, non-deprecated __SPIN_LOCK_UNLOCKED macro.

---

arch/ppc/syslib/mpc52xx_setup.c +1 -1
index 9f504fc..ab0cf4c 100644
@@ -279,7 +279,7 @@ int mpc52xx_match_psc_function(int psc_idx, const char *func)
 
 int mpc52xx_set_psc_clkdiv(int psc_id, int clkdiv)
 {
-	static spinlock_t lock = SPIN_LOCK_UNLOCKED;
+	static DEFINE_SPINLOCK(lock);
 	struct mpc52xx_cdm __iomem *cdm;
 	unsigned long flags;
 	u16 mclken_div;

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.

http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================