brcm47xx: BCMA - Always map 4 bytes
[openwrt.git] / target / linux / brcm47xx / patches-3.2 / 234-bcma-always-map-4-bytes.patch
1 --- a/drivers/bcma/driver_pci_host.c
2 +++ b/drivers/bcma/driver_pci_host.c
3 @@ -118,7 +118,7 @@ static int bcma_extpci_read_config(struc
4 if (unlikely(!addr))
5 goto out;
6 err = -ENOMEM;
7 - mmio = ioremap_nocache(addr, len);
8 + mmio = ioremap_nocache(addr, sizeof(val));
9 if (!mmio)
10 goto out;
11
12 @@ -170,7 +170,7 @@ static int bcma_extpci_write_config(stru
13 addr = pc->core->addr + BCMA_CORE_PCI_PCICFG0;
14 addr |= (func << 8);
15 addr |= (off & 0xfc);
16 - mmio = ioremap_nocache(addr, len);
17 + mmio = ioremap_nocache(addr, sizeof(val));
18 if (!mmio)
19 goto out;
20 }
21 @@ -179,7 +179,7 @@ static int bcma_extpci_write_config(stru
22 if (unlikely(!addr))
23 goto out;
24 err = -ENOMEM;
25 - mmio = ioremap_nocache(addr, len);
26 + mmio = ioremap_nocache(addr, sizeof(val));
27 if (!mmio)
28 goto out;
29
This page took 0.059464 seconds and 5 git commands to generate.