Skip to contentSkip to conversation

bcma: add IRQ number and pointer to DMA dev

PATCH New Rafał Miłecki 1 participant 1 message May 18, 2011 Broadcom specific amba driver (bcma)

lore
Share & tools
lore

Rafał Miłecki

author maintainer
#0 lore raw

PATCH 1/1 bcma: add IRQ number and pointer to DMA dev

---
 drivers/bcma/main.c       |    2 ++
 include/linux/bcma/bcma.h |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
drivers/bcma/main.c +2 -0
index be52344..a2f6b18 100644
@@ -89,6 +89,8 @@ static int bcma_register_cores(struct bcma_bus *bus)
 		switch (bus->hosttype) {
 		case BCMA_HOSTTYPE_PCI:
 			core->dev.parent = &bus->host_pci->dev;
+			core->dma_dev = &bus->host_pci->dev;
+			core->irq = bus->host_pci->irq;
 			break;
 		case BCMA_HOSTTYPE_NONE:
 		case BCMA_HOSTTYPE_SDIO:
include/linux/bcma/bcma.h +2 -0
index 08763e4..8b0cef9 100644
@@ -117,6 +117,8 @@ struct bcma_device {
 	struct bcma_device_id id;
 
 	struct device dev;
+	struct device *dma_dev;
+	unsigned int irq;
 	bool dev_registered;
 
 	u8 core_index;
Signature · 1 line
1.7.3.4