[POWERPC] Use __SPIN_LOCK_UNLOCKED macro in mpc52xx_set_psc_clkdiv
authorRobert P. J. Day <rpjday@crashcourse.ca>
Sat, 15 Mar 2008 17:27:07 +0000 (04:27 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 7 Apr 2008 03:49:21 +0000 (13:49 +1000)
__SPIN_LOCK_UNLOCKED is newer and is not deprecated.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/ppc/syslib/mpc52xx_setup.c

index 9f504fc7693ed4980215ae58c710fecbd78462ee..ab0cf4ced9e5043e10cec56061058a8b0ca2c42a 100644 (file)
@@ -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;