Commit e9f668dd authored by Kumar Gala's avatar Kumar Gala Committed by Mauro Carvalho Chehab

V4L/DVB (6010): Use inline functions instead of inline asm for powerpc

Change io_st_le32() to use inline functions rather than
direct inline assembly code.
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent fbd8af07
...@@ -151,9 +151,8 @@ void bt878_stop(struct bt878 *bt); ...@@ -151,9 +151,8 @@ void bt878_stop(struct bt878 *bt);
#if defined(__powerpc__) /* big-endian */ #if defined(__powerpc__) /* big-endian */
static inline void io_st_le32(volatile unsigned __iomem *addr, unsigned val) static inline void io_st_le32(volatile unsigned __iomem *addr, unsigned val)
{ {
__asm__ __volatile__("stwbrx %1,0,%2":"=m"(*addr):"r"(val), st_le32(addr, val);
"r"(addr)); eieio();
__asm__ __volatile__("eieio":::"memory");
} }
#define bmtwrite(dat,adr) io_st_le32((adr),(dat)) #define bmtwrite(dat,adr) io_st_le32((adr),(dat))
......
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