bcma: add IRQ number and pointer to DMA dev
authorRafał Miłecki <zajec5@gmail.com>
Wed, 18 May 2011 09:40:22 +0000 (11:40 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 1 Jun 2011 19:10:58 +0000 (15:10 -0400)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/main.c
include/linux/bcma/bcma.h

index be52344..a2f6b18 100644 (file)
@@ -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:
index 08763e4..8b0cef9 100644 (file)
@@ -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;