atheros: fix ath5k support on ar2315/2317
[openwrt/svn-archive/archive.git] / target / linux / atheros / patches-2.6.37 / 105-ar2315_pci.patch
index 3f5e6b4528b0b051dfba35cf3089d5b7d8df1e09..93fa95397ab336899eb577872564fe4c6f517a4a 100644 (file)
 +      if (ar231x_devtype != DEV_TYPE_AR2315)
 +              return -ENODEV;
 +
-+      configspace = (unsigned long) ioremap_nocache(0x80000000, 1*1024*1024); /* Remap PCI config space */
++      configspace = (unsigned long) ioremap_nocache(AR2315_PCIEXT, 1*1024*1024); /* Remap PCI config space */
 +      ar231x_pci_controller.io_map_base =
 +              (unsigned long) ioremap_nocache(AR531X_MEM_BASE + AR531X_MEM_SIZE, AR531X_IO_SIZE);
 +      set_io_port_base(ar231x_pci_controller.io_map_base); /* PCI I/O space */