From: Kumar Gala Date: Wed, 15 Aug 2007 13:43:19 +0000 (-0300) Subject: V4L/DVB (6010): Use inline functions instead of inline asm for powerpc X-Git-Tag: v2.6.24-rc1~1463^2~231 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e9f668dd12d3ed293af0d466bcaa393b78a7d0ee;p=karo-tx-linux.git 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/bt8xx/bt878.h b/drivers/media/dvb/bt8xx/bt878.h index 1c8e3366000f..d593bc145628 100644 --- a/drivers/media/dvb/bt8xx/bt878.h +++ b/drivers/media/dvb/bt8xx/bt878.h @@ -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))