This probably doesn't matter, but reads/writes are always 4 bytes, so always 
map 4 bytes.

Signed-off-by: Nathan Hintz <nlhi...@hotmail.com>

Index: target/linux/brcm47xx/patches-3.2/044-bcma-add-PCIe-host-controller.patch
===================================================================
--- target/linux/brcm47xx/patches-3.2/044-bcma-add-PCIe-host-controller.patch   
(revision 30959)
+++ target/linux/brcm47xx/patches-3.2/044-bcma-add-PCIe-host-controller.patch   
(working copy)
@@ -289,7 +289,7 @@
 +              if (unlikely(!addr))
 +                      goto out;
 +              err = -ENOMEM;
-+              mmio = ioremap_nocache(addr, len);
++              mmio = ioremap_nocache(addr, sizeof(val));
 +              if (!mmio)
 +                      goto out;
 +
@@ -341,7 +341,7 @@
 +                      addr = pc->core->addr + BCMA_CORE_PCI_PCICFG0;
 +                      addr |= (func << 8);
 +                      addr |= (off & 0xfc);
-+                      mmio = ioremap_nocache(addr, len);
++                      mmio = ioremap_nocache(addr, sizeof(val));
 +                      if (!mmio)
 +                              goto out;
 +              }
@@ -350,7 +350,7 @@
 +              if (unlikely(!addr))
 +                      goto out;
 +              err = -ENOMEM;
-+              mmio = ioremap_nocache(addr, len);
++              mmio = ioremap_nocache(addr, sizeof(val));
 +              if (!mmio)
 +                      goto out;
 +

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to