Commit c5d5d94a authored by Robert P. J. Day's avatar Robert P. J. Day Committed by Paul Mackerras

[POWERPC] Use __SPIN_LOCK_UNLOCKED macro in mpc52xx_set_psc_clkdiv

__SPIN_LOCK_UNLOCKED is newer and is not deprecated.
Signed-off-by: default avatarRobert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 221ac329
...@@ -279,7 +279,7 @@ int mpc52xx_match_psc_function(int psc_idx, const char *func) ...@@ -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) 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; struct mpc52xx_cdm __iomem *cdm;
unsigned long flags; unsigned long flags;
u16 mclken_div; u16 mclken_div;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment