]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/pci/cs4281.c
pci: use pci_ioremap_bar() in sound/
[linux-2.6-omap-h63xx.git] / sound / pci / cs4281.c
index ef9308f7c45b3e17deb00c3fcf22f9fa96795293..192e7842e181e4cbbe8c3f0be43c7cccb4213964 100644 (file)
@@ -1382,8 +1382,8 @@ static int __devinit snd_cs4281_create(struct snd_card *card,
        chip->ba0_addr = pci_resource_start(pci, 0);
        chip->ba1_addr = pci_resource_start(pci, 1);
 
-       chip->ba0 = ioremap_nocache(chip->ba0_addr, pci_resource_len(pci, 0));
-       chip->ba1 = ioremap_nocache(chip->ba1_addr, pci_resource_len(pci, 1));
+       chip->ba0 = pci_ioremap_bar(pci, 0);
+       chip->ba1 = pci_ioremap_bar(pci, 1);
        if (!chip->ba0 || !chip->ba1) {
                snd_cs4281_free(chip);
                return -ENOMEM;