Skip to content

Commit

Permalink
[POWERPC] Use __SPIN_LOCK_UNLOCKED macro in mpc52xx_set_psc_clkdiv
Browse files Browse the repository at this point in the history
__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>
  • Loading branch information
Robert P. J. Day authored and Paul Mackerras committed Apr 7, 2008
1 parent 221ac32 commit c5d5d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/ppc/syslib/mpc52xx_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c5d5d94

Please sign in to comment.