Commit 1bdcd095e39a789135f8638a2ff76f74e3071d46

Authored by Rafał Miłecki
Committed by John W. Linville
1 parent 24ca39d679

bcma: add IRQ number and pointer to DMA dev

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

Showing 2 changed files with 4 additions and 0 deletions Side-by-side Diff

... ... @@ -89,6 +89,8 @@
89 89 switch (bus->hosttype) {
90 90 case BCMA_HOSTTYPE_PCI:
91 91 core->dev.parent = &bus->host_pci->dev;
  92 + core->dma_dev = &bus->host_pci->dev;
  93 + core->irq = bus->host_pci->irq;
92 94 break;
93 95 case BCMA_HOSTTYPE_NONE:
94 96 case BCMA_HOSTTYPE_SDIO:
include/linux/bcma/bcma.h
... ... @@ -117,6 +117,8 @@
117 117 struct bcma_device_id id;
118 118  
119 119 struct device dev;
  120 + struct device *dma_dev;
  121 + unsigned int irq;
120 122 bool dev_registered;
121 123  
122 124 u8 core_index;