aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/asihpi/hpios.c
diff options
context:
space:
mode:
authorEliot Blennerhassett <eblennerhassett@audioscience.com>2010-05-27 17:53:51 +1200
committerTakashi Iwai <tiwai@suse.de>2010-05-27 09:50:47 +0200
commitf038e27c9e9adc166b6004e3a09cc57d61fdbd7b (patch)
tree8075e9bd1f4216869fd78522df46ead1b3d753a2 /sound/pci/asihpi/hpios.c
parent92c256110fa9566de639ef8948b4fb430aa495b3 (diff)
downloadkernel_goldelico_gta04-f038e27c9e9adc166b6004e3a09cc57d61fdbd7b.zip
kernel_goldelico_gta04-f038e27c9e9adc166b6004e3a09cc57d61fdbd7b.tar.gz
kernel_goldelico_gta04-f038e27c9e9adc166b6004e3a09cc57d61fdbd7b.tar.bz2
ALSA: asihpi - Remove unused io map functions
Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/asihpi/hpios.c')
-rw-r--r--sound/pci/asihpi/hpios.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/sound/pci/asihpi/hpios.c b/sound/pci/asihpi/hpios.c
index de615cf..742ee12 100644
--- a/sound/pci/asihpi/hpios.c
+++ b/sound/pci/asihpi/hpios.c
@@ -89,26 +89,3 @@ u16 hpios_locked_mem_free(struct consistent_dma_area *p_mem_area)
void hpios_locked_mem_free_all(void)
{
}
-
-void __iomem *hpios_map_io(struct pci_dev *pci_dev, int idx,
- unsigned int length)
-{
- HPI_DEBUG_LOG(DEBUG, "mapping %d %s %08llx-%08llx %04llx len 0x%x\n",
- idx, pci_dev->resource[idx].name,
- (unsigned long long)pci_resource_start(pci_dev, idx),
- (unsigned long long)pci_resource_end(pci_dev, idx),
- (unsigned long long)pci_resource_flags(pci_dev, idx), length);
-
- if (!(pci_resource_flags(pci_dev, idx) & IORESOURCE_MEM)) {
- HPI_DEBUG_LOG(ERROR, "not an io memory resource\n");
- return NULL;
- }
-
- if (length > pci_resource_len(pci_dev, idx)) {
- HPI_DEBUG_LOG(ERROR, "resource too small for requested %d \n",
- length);
- return NULL;
- }
-
- return ioremap(pci_resource_start(pci_dev, idx), length);
-}