.. | .. |
---|
172 | 172 | /* iomap only first core. We have to read some register on this core |
---|
173 | 173 | * to scan the bus. |
---|
174 | 174 | */ |
---|
175 | | - bus->mmio = ioremap_nocache(BCMA_ADDR_BASE, BCMA_CORE_SIZE * 1); |
---|
| 175 | + bus->mmio = ioremap(BCMA_ADDR_BASE, BCMA_CORE_SIZE * 1); |
---|
176 | 176 | if (!bus->mmio) |
---|
177 | 177 | return -ENOMEM; |
---|
178 | 178 | |
---|
179 | 179 | /* Host specific */ |
---|
180 | 180 | bus->hosttype = BCMA_HOSTTYPE_SOC; |
---|
181 | 181 | bus->ops = &bcma_host_soc_ops; |
---|
182 | | - bus->host_pdev = NULL; |
---|
183 | 182 | |
---|
184 | 183 | /* Initialize struct, detect chip */ |
---|
185 | 184 | bcma_init_bus(bus); |
---|
.. | .. |
---|
213 | 212 | if (!bus) |
---|
214 | 213 | return -ENOMEM; |
---|
215 | 214 | |
---|
| 215 | + bus->dev = dev; |
---|
| 216 | + |
---|
216 | 217 | /* Map MMIO */ |
---|
217 | 218 | bus->mmio = of_iomap(np, 0); |
---|
218 | 219 | if (!bus->mmio) |
---|
.. | .. |
---|
221 | 222 | /* Host specific */ |
---|
222 | 223 | bus->hosttype = BCMA_HOSTTYPE_SOC; |
---|
223 | 224 | bus->ops = &bcma_host_soc_ops; |
---|
224 | | - bus->host_pdev = pdev; |
---|
225 | 225 | |
---|
226 | 226 | /* Initialize struct, detect chip */ |
---|
227 | 227 | bcma_init_bus(bus); |
---|