Commit 1d747c7e authored by Helge Deller's avatar Helge Deller Committed by Kyle McMartin

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: default avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarKyle McMartin <kyle@mcmartin.ca>
parent 888c31fc
...@@ -160,7 +160,7 @@ static inline void set_eiem(unsigned long val) ...@@ -160,7 +160,7 @@ static inline void set_eiem(unsigned long val)
ldcd). */ ldcd). */
#define __PA_LDCW_ALIGNMENT 4 #define __PA_LDCW_ALIGNMENT 4
#define __ldcw_align(a) ((volatile unsigned int *)a) #define __ldcw_align(a) (&(a)->slock)
#define __LDCW "ldcw,co" #define __LDCW "ldcw,co"
#endif /*!CONFIG_PA20*/ #endif /*!CONFIG_PA20*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment