Skip to content

Commit

Permalink
V4L/DVB (6010): Use inline functions instead of inline asm for powerpc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kumar Gala authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent fbd8af0 commit e9f668d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/media/dvb/bt8xx/bt878.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit e9f668d

Please sign in to comment.