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 be52344ed19d4a1dc905d25ca9b0e478ae1e6c95..a2f6b1879273442d151745aa7e8b526caab40248 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 08763e4e848f763d6a345f0f925add947ea4c12e..8b0cef9fd692b93ed9f5475c3f8882034a1527ad 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;