Skip to content

Commit 1bdcd09

Browse files
rmileckilinvjw
authored andcommitted
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>
1 parent 24ca39d commit 1bdcd09

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎drivers/bcma/main.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ static int bcma_register_cores(struct bcma_bus *bus)
8989
switch (bus->hosttype) {
9090
case BCMA_HOSTTYPE_PCI:
9191
core->dev.parent = &bus->host_pci->dev;
92+
core->dma_dev = &bus->host_pci->dev;
93+
core->irq = bus->host_pci->irq;
9294
break;
9395
case BCMA_HOSTTYPE_NONE:
9496
case BCMA_HOSTTYPE_SDIO:

‎include/linux/bcma/bcma.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ struct bcma_device {
117117
struct bcma_device_id id;
118118

119119
struct device dev;
120+
struct device *dma_dev;
121+
unsigned int irq;
120122
bool dev_registered;
121123

122124
u8 core_index;

0 commit comments

Comments
 (0)