projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
221ac32
)
[POWERPC] Use __SPIN_LOCK_UNLOCKED macro in mpc52xx_set_psc_clkdiv
author
Robert P. J. Day
<rpjday@crashcourse.ca>
Sat, 15 Mar 2008 17:27:07 +0000
(
04:27
+1100)
committer
Paul Mackerras
<paulus@samba.org>
Mon, 7 Apr 2008 03:49:21 +0000
(13:49 +1000)
__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>
arch/ppc/syslib/mpc52xx_setup.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/ppc/syslib/mpc52xx_setup.c
b/arch/ppc/syslib/mpc52xx_setup.c
index 9f504fc7693ed4980215ae58c710fecbd78462ee..ab0cf4ced9e5043e10cec56061058a8b0ca2c42a 100644
(file)
--- a/
arch/ppc/syslib/mpc52xx_setup.c
+++ b/
arch/ppc/syslib/mpc52xx_setup.c
@@
-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;