projects
/
platform
/
kernel
/
linux-rpi.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
|
history
diff --git
a/arch/ppc/syslib/mpc52xx_setup.c
b/arch/ppc/syslib/mpc52xx_setup.c
index
9f504fc
..
ab0cf4c
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;