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>
This commit is contained in:
Родитель
24ca39d679
Коммит
1bdcd095e3
|
@ -89,6 +89,8 @@ static int bcma_register_cores(struct bcma_bus *bus)
|
||||||
switch (bus->hosttype) {
|
switch (bus->hosttype) {
|
||||||
case BCMA_HOSTTYPE_PCI:
|
case BCMA_HOSTTYPE_PCI:
|
||||||
core->dev.parent = &bus->host_pci->dev;
|
core->dev.parent = &bus->host_pci->dev;
|
||||||
|
core->dma_dev = &bus->host_pci->dev;
|
||||||
|
core->irq = bus->host_pci->irq;
|
||||||
break;
|
break;
|
||||||
case BCMA_HOSTTYPE_NONE:
|
case BCMA_HOSTTYPE_NONE:
|
||||||
case BCMA_HOSTTYPE_SDIO:
|
case BCMA_HOSTTYPE_SDIO:
|
||||||
|
|
|
@ -117,6 +117,8 @@ struct bcma_device {
|
||||||
struct bcma_device_id id;
|
struct bcma_device_id id;
|
||||||
|
|
||||||
struct device dev;
|
struct device dev;
|
||||||
|
struct device *dma_dev;
|
||||||
|
unsigned int irq;
|
||||||
bool dev_registered;
|
bool dev_registered;
|
||||||
|
|
||||||
u8 core_index;
|
u8 core_index;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче