.. | .. |
---|
332 | 332 | struct ssb_sprom *out)); |
---|
333 | 333 | |
---|
334 | 334 | struct bcma_bus { |
---|
| 335 | + struct device *dev; |
---|
| 336 | + |
---|
335 | 337 | /* The MMIO area. */ |
---|
336 | 338 | void __iomem *mmio; |
---|
337 | 339 | |
---|
.. | .. |
---|
339 | 341 | |
---|
340 | 342 | enum bcma_hosttype hosttype; |
---|
341 | 343 | bool host_is_pcie2; /* Used for BCMA_HOSTTYPE_PCI only */ |
---|
342 | | - union { |
---|
343 | | - /* Pointer to the PCI bus (only for BCMA_HOSTTYPE_PCI) */ |
---|
344 | | - struct pci_dev *host_pci; |
---|
345 | | - /* Pointer to the SDIO device (only for BCMA_HOSTTYPE_SDIO) */ |
---|
346 | | - struct sdio_func *host_sdio; |
---|
347 | | - /* Pointer to platform device (only for BCMA_HOSTTYPE_SOC) */ |
---|
348 | | - struct platform_device *host_pdev; |
---|
349 | | - }; |
---|
| 344 | + struct pci_dev *host_pci; /* PCI bus pointer (BCMA_HOSTTYPE_PCI only) */ |
---|
350 | 345 | |
---|
351 | 346 | struct bcma_chipinfo chipinfo; |
---|
352 | 347 | |
---|