mirror of
https://github.com/adulau/aha.git
synced 2025-01-03 22:53:18 +00:00
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: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
fbd8af0706
commit
e9f668dd12
1 changed files with 2 additions and 3 deletions
|
@ -151,9 +151,8 @@ void bt878_stop(struct bt878 *bt);
|
|||
#if defined(__powerpc__) /* big-endian */
|
||||
static inline void io_st_le32(volatile unsigned __iomem *addr, unsigned val)
|
||||
{
|
||||
__asm__ __volatile__("stwbrx %1,0,%2":"=m"(*addr):"r"(val),
|
||||
"r"(addr));
|
||||
__asm__ __volatile__("eieio":::"memory");
|
||||
st_le32(addr, val);
|
||||
eieio();
|
||||
}
|
||||
|
||||
#define bmtwrite(dat,adr) io_st_le32((adr),(dat))
|
||||
|
|
Loading…
Reference in a new issue