diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2015-03-24 03:32:03 +0100 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2015-03-24 03:33:50 +0100 |
commit | c2d5a71064b5d5d169496907030c887eb6590553 (patch) | |
tree | 3fe47f83fab74d8a7910c64664def8601e70f096 /drivers/media/pci/bt8xx/bt878.h | |
parent | powerpc: Move Power Macintosh drivers to generic byteswappers (diff) | |
download | linux-c2d5a71064b5d5d169496907030c887eb6590553.tar.xz linux-c2d5a71064b5d5d169496907030c887eb6590553.zip |
media/bt8xx: Remove old powerpc cruft
The powerpc arch code enables PCI_COMMAND_MEMORY (and has done so for
more than 10 years at least !) on pci_enable_device() and the hackery
on the MMIO accessor is useless as well, our writel does everything
this driver should need.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
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, u32 irq_err_ignore); void bt878_stop(struct bt878 *bt); -#if defined(__powerpc__) /* big-endian */ -static inline void io_st_le32(volatile unsigned __iomem *addr, unsigned val) -{ - st_le32(addr, val); - eieio(); -} - -#define bmtwrite(dat,adr) io_st_le32((adr),(dat)) -#define bmtread(adr) ld_le32((adr)) -#else #define bmtwrite(dat,adr) writel((dat), (adr)) #define bmtread(adr) readl(adr) -#endif #endif |