mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 21:33:00 +00:00
[POWERPC] Use __SPIN_LOCK_UNLOCKED macro in mpc52xx_set_psc_clkdiv
__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>
This commit is contained in:
parent
221ac329e9
commit
c5d5d94aa5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user