summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/bt8xx
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-08-15 10:43:19 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-08-15 10:43:19 -0300
commiteb167a6a15becb8aa17bed0935d88e7a3d67e86d (patch)
tree3fdb8bc8acd976b85bc27edfa80a93f40f039d2e /linux/drivers/media/dvb/bt8xx
parent573a4f1509302a907e54ba259e673c13facfd6ce (diff)
downloadmediapointer-dvb-s2-eb167a6a15becb8aa17bed0935d88e7a3d67e86d.tar.gz
mediapointer-dvb-s2-eb167a6a15becb8aa17bed0935d88e7a3d67e86d.tar.bz2
Use inline functions instead of inline asm for powerpc
From: Kumar Gala <galak@kernel.crashing.org> 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>
Diffstat (limited to 'linux/drivers/media/dvb/bt8xx')
-rw-r--r--linux/drivers/media/dvb/bt8xx/bt878.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/bt8xx/bt878.h b/linux/drivers/media/dvb/bt8xx/bt878.h
index c20c1c996..0a60aaf1c 100644
--- a/linux/drivers/media/dvb/bt8xx/bt878.h
+++ b/linux/drivers/media/dvb/bt8xx/bt878.h
@@ -158,9 +158,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))