Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;