summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_intel.c
diff options
context:
space:
mode:
authorArjan van de Ven2008-09-29 01:20:09 +0200
committerTakashi Iwai2008-10-21 09:31:10 +0200
commit2f5ad54ea6e2e38156bfb889964deee991f3087a (patch)
tree5092c0e36765c439181bb28712118dc8b899ca8b /sound/pci/hda/hda_intel.c
parentbinfmt_elf_fdpic: Update for cputime changes. (diff)
downloadkernel-qcow2-linux-2f5ad54ea6e2e38156bfb889964deee991f3087a.tar.gz
kernel-qcow2-linux-2f5ad54ea6e2e38156bfb889964deee991f3087a.tar.xz
kernel-qcow2-linux-2f5ad54ea6e2e38156bfb889964deee991f3087a.zip
pci: use pci_ioremap_bar() in sound/
Use the newly introduced pci_ioremap_bar() function in sound/. pci_ioremap_bar() just takes a pci device and a bar number, with the goal of making it really hard to get wrong, while also having a central place to stick sanity checks. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r--sound/pci/hda/hda_intel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 9f316c1b2790..f080f8ce0ecb 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -2158,7 +2158,7 @@ static int __devinit azx_create(struct snd_card *card, struct pci_dev *pci,
}
chip->addr = pci_resource_start(pci, 0);
- chip->remap_addr = ioremap_nocache(chip->addr, pci_resource_len(pci,0));
+ chip->remap_addr = pci_ioremap_bar(pci, 0);
if (chip->remap_addr == NULL) {
snd_printk(KERN_ERR SFX "ioremap error\n");
err = -ENXIO;