|
@@ -203,7 +203,7 @@ static void sta2x11_setup_pdev(struct pci_dev *pdev)
|
|
|
return;
|
|
|
pci_set_consistent_dma_mask(pdev, STA2X11_AMBA_SIZE - 1);
|
|
|
pci_set_dma_mask(pdev, STA2X11_AMBA_SIZE - 1);
|
|
|
- pdev->dev.archdata.dma_ops = &sta2x11_dma_ops;
|
|
|
+ pdev->dev.dma_ops = &sta2x11_dma_ops;
|
|
|
|
|
|
/* We must enable all devices as master, for audio DMA to work */
|
|
|
pci_set_master(pdev);
|
|
@@ -223,7 +223,7 @@ bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
|
|
|
{
|
|
|
struct sta2x11_mapping *map;
|
|
|
|
|
|
- if (dev->archdata.dma_ops != &sta2x11_dma_ops) {
|
|
|
+ if (dev->dma_ops != &sta2x11_dma_ops) {
|
|
|
if (!dev->dma_mask)
|
|
|
return false;
|
|
|
return addr + size - 1 <= *dev->dma_mask;
|
|
@@ -247,7 +247,7 @@ bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
|
|
|
*/
|
|
|
dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr)
|
|
|
{
|
|
|
- if (dev->archdata.dma_ops != &sta2x11_dma_ops)
|
|
|
+ if (dev->dma_ops != &sta2x11_dma_ops)
|
|
|
return paddr;
|
|
|
return p2a(paddr, to_pci_dev(dev));
|
|
|
}
|
|
@@ -259,7 +259,7 @@ dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr)
|
|
|
*/
|
|
|
phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr)
|
|
|
{
|
|
|
- if (dev->archdata.dma_ops != &sta2x11_dma_ops)
|
|
|
+ if (dev->dma_ops != &sta2x11_dma_ops)
|
|
|
return daddr;
|
|
|
return a2p(daddr, to_pci_dev(dev));
|
|
|
}
|