diff options
author | Helge Deller <deller@gmx.de> | 2010-02-02 14:06:23 -0500 |
---|---|---|
committer | Kyle McMartin <kyle@redhat.com> | 2010-03-06 17:54:10 -0500 |
commit | 1d747c7e7b754cacb9bc8d31854bdc3a58d70597 (patch) | |
tree | a995ed2c18b2a277889c628162c3597a7ec6e133 /arch/parisc/include/asm/system.h | |
parent | 888c31fc83ddc7fcd9947cb67c5718b4e3dd5e1b (diff) |
parisc: drop unnecessary cast in __ldcw_align() macro
__ldcw_align() can directly access the slock member of struct arch_spinlock_t
instead of using an ugly cast.
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'arch/parisc/include/asm/system.h')
-rw-r--r-- | arch/parisc/include/asm/system.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/include/asm/system.h b/arch/parisc/include/asm/system.h index d91357bca5b4..4653c77bf9d1 100644 --- a/arch/parisc/include/asm/system.h +++ b/arch/parisc/include/asm/system.h | |||
@@ -160,7 +160,7 @@ static inline void set_eiem(unsigned long val) | |||
160 | ldcd). */ | 160 | ldcd). */ |
161 | 161 | ||
162 | #define __PA_LDCW_ALIGNMENT 4 | 162 | #define __PA_LDCW_ALIGNMENT 4 |
163 | #define __ldcw_align(a) ((volatile unsigned int *)a) | 163 | #define __ldcw_align(a) (&(a)->slock) |
164 | #define __LDCW "ldcw,co" | 164 | #define __LDCW "ldcw,co" |
165 | 165 | ||
166 | #endif /*!CONFIG_PA20*/ | 166 | #endif /*!CONFIG_PA20*/ |