hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/bcma/host_soc.c
....@@ -172,14 +172,13 @@
172172 /* iomap only first core. We have to read some register on this core
173173 * to scan the bus.
174174 */
175
- bus->mmio = ioremap_nocache(BCMA_ADDR_BASE, BCMA_CORE_SIZE * 1);
175
+ bus->mmio = ioremap(BCMA_ADDR_BASE, BCMA_CORE_SIZE * 1);
176176 if (!bus->mmio)
177177 return -ENOMEM;
178178
179179 /* Host specific */
180180 bus->hosttype = BCMA_HOSTTYPE_SOC;
181181 bus->ops = &bcma_host_soc_ops;
182
- bus->host_pdev = NULL;
183182
184183 /* Initialize struct, detect chip */
185184 bcma_init_bus(bus);
....@@ -213,6 +212,8 @@
213212 if (!bus)
214213 return -ENOMEM;
215214
215
+ bus->dev = dev;
216
+
216217 /* Map MMIO */
217218 bus->mmio = of_iomap(np, 0);
218219 if (!bus->mmio)
....@@ -221,7 +222,6 @@
221222 /* Host specific */
222223 bus->hosttype = BCMA_HOSTTYPE_SOC;
223224 bus->ops = &bcma_host_soc_ops;
224
- bus->host_pdev = pdev;
225225
226226 /* Initialize struct, detect chip */
227227 bcma_init_bus(bus);