diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2007-08-15 09:43:19 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:05:07 -0400 |
commit | e9f668dd12d3ed293af0d466bcaa393b78a7d0ee (patch) | |
tree | 033f403cd204132159113d9df05028e5c9c3c78f /drivers/media/dvb/bt8xx | |
parent | fbd8af07063f7379e71654013e7915315cd869f8 (diff) |
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>
Diffstat (limited to 'drivers/media/dvb/bt8xx')
-rw-r--r-- | drivers/media/dvb/bt8xx/bt878.h | 5 |
1 files changed, 2 insertions, 3 deletions
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); | |||
151 | #if defined(__powerpc__) /* big-endian */ | 151 | #if defined(__powerpc__) /* big-endian */ |
152 | static inline void io_st_le32(volatile unsigned __iomem *addr, unsigned val) | 152 | static inline void io_st_le32(volatile unsigned __iomem *addr, unsigned val) |
153 | { | 153 | { |
154 | __asm__ __volatile__("stwbrx %1,0,%2":"=m"(*addr):"r"(val), | 154 | st_le32(addr, val); |
155 | "r"(addr)); | 155 | eieio(); |
156 | __asm__ __volatile__("eieio":::"memory"); | ||
157 | } | 156 | } |
158 | 157 | ||
159 | #define bmtwrite(dat,adr) io_st_le32((adr),(dat)) | 158 | #define bmtwrite(dat,adr) io_st_le32((adr),(dat)) |