diff options
Diffstat (limited to 'drivers/media/pci/bt8xx/bt878.h')
-rw-r--r-- | drivers/media/pci/bt8xx/bt878.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/media/pci/bt8xx/bt878.h b/drivers/media/pci/bt8xx/bt878.h index d19b59299d78..49af240b5894 100644 --- a/drivers/media/pci/bt8xx/bt878.h +++ b/drivers/media/pci/bt8xx/bt878.h | |||
@@ -142,18 +142,7 @@ void bt878_start(struct bt878 *bt, u32 controlreg, u32 op_sync_orin, | |||
142 | u32 irq_err_ignore); | 142 | u32 irq_err_ignore); |
143 | void bt878_stop(struct bt878 *bt); | 143 | void bt878_stop(struct bt878 *bt); |
144 | 144 | ||
145 | #if defined(__powerpc__) /* big-endian */ | ||
146 | static inline void io_st_le32(volatile unsigned __iomem *addr, unsigned val) | ||
147 | { | ||
148 | st_le32(addr, val); | ||
149 | eieio(); | ||
150 | } | ||
151 | |||
152 | #define bmtwrite(dat,adr) io_st_le32((adr),(dat)) | ||
153 | #define bmtread(adr) ld_le32((adr)) | ||
154 | #else | ||
155 | #define bmtwrite(dat,adr) writel((dat), (adr)) | 145 | #define bmtwrite(dat,adr) writel((dat), (adr)) |
156 | #define bmtread(adr) readl(adr) | 146 | #define bmtread(adr) readl(adr) |
157 | #endif | ||
158 | 147 | ||
159 | #endif | 148 | #endif |