]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (6010): Use inline functions instead of inline asm for powerpc
authorKumar Gala <galak@kernel.crashing.org>
Wed, 15 Aug 2007 13:43:19 +0000 (10:43 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:05:07 +0000 (22:05 -0300)
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>
drivers/media/dvb/bt8xx/bt878.h

index 1c8e3366000fbcbf4d82780dad2d5039db165e1d..d593bc145628e3f0311875132dea279900a47f8d 100644 (file)
@@ -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))