Commit f038e27c9e9adc166b6004e3a09cc57d61fdbd7b
Committed by
Takashi Iwai
1 parent
92c256110f
Exists in
master
and in
7 other branches
ALSA: asihpi - Remove unused io map functions
Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Showing 2 changed files with 0 additions and 32 deletions Side-by-side Diff
sound/pci/asihpi/hpios.c
... | ... | @@ -89,27 +89,4 @@ |
89 | 89 | void hpios_locked_mem_free_all(void) |
90 | 90 | { |
91 | 91 | } |
92 | - | |
93 | -void __iomem *hpios_map_io(struct pci_dev *pci_dev, int idx, | |
94 | - unsigned int length) | |
95 | -{ | |
96 | - HPI_DEBUG_LOG(DEBUG, "mapping %d %s %08llx-%08llx %04llx len 0x%x\n", | |
97 | - idx, pci_dev->resource[idx].name, | |
98 | - (unsigned long long)pci_resource_start(pci_dev, idx), | |
99 | - (unsigned long long)pci_resource_end(pci_dev, idx), | |
100 | - (unsigned long long)pci_resource_flags(pci_dev, idx), length); | |
101 | - | |
102 | - if (!(pci_resource_flags(pci_dev, idx) & IORESOURCE_MEM)) { | |
103 | - HPI_DEBUG_LOG(ERROR, "not an io memory resource\n"); | |
104 | - return NULL; | |
105 | - } | |
106 | - | |
107 | - if (length > pci_resource_len(pci_dev, idx)) { | |
108 | - HPI_DEBUG_LOG(ERROR, "resource too small for requested %d \n", | |
109 | - length); | |
110 | - return NULL; | |
111 | - } | |
112 | - | |
113 | - return ioremap(pci_resource_start(pci_dev, idx), length); | |
114 | -} |
sound/pci/asihpi/hpios.h
... | ... | @@ -166,14 +166,5 @@ |
166 | 166 | void __iomem *ap_remapped_mem_base[HPI_MAX_ADAPTER_MEM_SPACES]; |
167 | 167 | }; |
168 | 168 | |
169 | -static inline void hpios_unmap_io(void __iomem *addr, | |
170 | - unsigned long size) | |
171 | -{ | |
172 | - iounmap(addr); | |
173 | -} | |
174 | - | |
175 | -void __iomem *hpios_map_io(struct pci_dev *pci_dev, int idx, | |
176 | - unsigned int length); | |
177 | - | |
178 | 169 | #endif |