Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
[sfrench/cifs-2.6.git] / 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;