diff options
-rw-r--r-- | arch/mips/Kconfig | 4 | ||||
-rw-r--r-- | arch/mips/include/asm/pci.h | 22 |
2 files changed, 3 insertions, 23 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 591ca0cd4c24..29e86923d1bf 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -812,9 +812,9 @@ config DMA_COHERENT | |||
812 | 812 | ||
813 | config DMA_NONCOHERENT | 813 | config DMA_NONCOHERENT |
814 | bool | 814 | bool |
815 | select DMA_NEED_PCI_MAP_STATE | 815 | select NEED_DMA_MAP_STATE |
816 | 816 | ||
817 | config DMA_NEED_PCI_MAP_STATE | 817 | config NEED_DMA_MAP_STATE |
818 | bool | 818 | bool |
819 | 819 | ||
820 | config SYS_HAS_EARLY_PRINTK | 820 | config SYS_HAS_EARLY_PRINTK |
diff --git a/arch/mips/include/asm/pci.h b/arch/mips/include/asm/pci.h index 5ebf82572ec0..9b196f8f7060 100644 --- a/arch/mips/include/asm/pci.h +++ b/arch/mips/include/asm/pci.h | |||
@@ -102,27 +102,7 @@ struct pci_dev; | |||
102 | */ | 102 | */ |
103 | extern unsigned int PCI_DMA_BUS_IS_PHYS; | 103 | extern unsigned int PCI_DMA_BUS_IS_PHYS; |
104 | 104 | ||
105 | #ifdef CONFIG_DMA_NEED_PCI_MAP_STATE | 105 | #include <linux/pci-dma.h> |
106 | |||
107 | /* pci_unmap_{single,page} is not a nop, thus... */ | ||
108 | #define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME) dma_addr_t ADDR_NAME; | ||
109 | #define DECLARE_PCI_UNMAP_LEN(LEN_NAME) __u32 LEN_NAME; | ||
110 | #define pci_unmap_addr(PTR, ADDR_NAME) ((PTR)->ADDR_NAME) | ||
111 | #define pci_unmap_addr_set(PTR, ADDR_NAME, VAL) (((PTR)->ADDR_NAME) = (VAL)) | ||
112 | #define pci_unmap_len(PTR, LEN_NAME) ((PTR)->LEN_NAME) | ||
113 | #define pci_unmap_len_set(PTR, LEN_NAME, VAL) (((PTR)->LEN_NAME) = (VAL)) | ||
114 | |||
115 | #else /* CONFIG_DMA_NEED_PCI_MAP_STATE */ | ||
116 | |||
117 | /* pci_unmap_{page,single} is a nop so... */ | ||
118 | #define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME) | ||
119 | #define DECLARE_PCI_UNMAP_LEN(LEN_NAME) | ||
120 | #define pci_unmap_addr(PTR, ADDR_NAME) (0) | ||
121 | #define pci_unmap_addr_set(PTR, ADDR_NAME, VAL) do { } while (0) | ||
122 | #define pci_unmap_len(PTR, LEN_NAME) (0) | ||
123 | #define pci_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0) | ||
124 | |||
125 | #endif /* CONFIG_DMA_NEED_PCI_MAP_STATE */ | ||
126 | 106 | ||
127 | #ifdef CONFIG_PCI | 107 | #ifdef CONFIG_PCI |
128 | static inline void pci_dma_burst_advice(struct pci_dev *pdev, | 108 | static inline void pci_dma_burst_advice(struct pci_dev *pdev, |