120 |
// |
// |
121 |
if ((err = pci_request_regions(pci, CARD_NAME_SHORT)) != 0) |
if ((err = pci_request_regions(pci, CARD_NAME_SHORT)) != 0) |
122 |
goto regions_out; |
goto regions_out; |
123 |
|
|
124 |
//chip->mmio = ioremap_nocache(pci_resource_start(pci,0), pci_resource_len(pci,0)); |
chip->mmio = ioremap_nocache(pci_resource_start(pci,0), pci_resource_len(pci,0)); |
|
chip->mmio = ioremap(pci_resource_start(pci,0), pci_resource_len(pci,0)); |
|
125 |
if (!chip->mmio) { |
if (!chip->mmio) { |
126 |
printk(KERN_ERR "MMIO area remap failed.\n"); |
printk(KERN_ERR "MMIO area remap failed.\n"); |
127 |
err = -ENOMEM; |
err = -ENOMEM; |