source: trunk/target/linux/generic/patches-2.6.31/942-ssb_add_dma_dev.patch @ 22718

Last change on this file since 22718 was 22718, checked in by nbd, 6 years ago

kernel: backport ssb dma_dev changes to fix b43 build

File size: 645 bytes
  • drivers/ssb/main.c

    a b  
    461461#ifdef CONFIG_SSB_PCIHOST 
    462462                        sdev->irq = bus->host_pci->irq; 
    463463                        dev->parent = &bus->host_pci->dev; 
     464                        sdev->dma_dev = dev->parent; 
    464465#endif 
    465466                        break; 
    466467                case SSB_BUSTYPE_PCMCIA: 
     
    473474                        break; 
    474475                case SSB_BUSTYPE_SSB: 
    475476                        dev->dma_mask = &dev->coherent_dma_mask; 
     477                        sdev->dma_dev = dev; 
    476478                        break; 
    477479                } 
    478480 
  • include/linux/ssb/ssb.h

    a b  
    167167         * is an optimization. */ 
    168168        const struct ssb_bus_ops *ops; 
    169169 
    170         struct device *dev; 
     170        struct device *dev, *dma_dev; 
    171171 
    172172        struct ssb_bus *bus; 
    173173        struct ssb_device_id id; 
Note: See TracBrowser for help on using the repository browser.