mirror of https://gitee.com/openkylin/linux.git
powerpc/pci: remove the dma_set_mask pci_controller ops methods
Unused now. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
ffe3dfd4e3
commit
662acad406
|
@ -45,8 +45,6 @@ struct pci_controller_ops {
|
||||||
void (*teardown_msi_irqs)(struct pci_dev *pdev);
|
void (*teardown_msi_irqs)(struct pci_dev *pdev);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int (*dma_set_mask)(struct pci_dev *pdev, u64 dma_mask);
|
|
||||||
|
|
||||||
void (*shutdown)(struct pci_controller *hose);
|
void (*shutdown)(struct pci_controller *hose);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -304,13 +304,6 @@ int dma_set_mask(struct device *dev, u64 dma_mask)
|
||||||
if (ppc_md.dma_set_mask)
|
if (ppc_md.dma_set_mask)
|
||||||
return ppc_md.dma_set_mask(dev, dma_mask);
|
return ppc_md.dma_set_mask(dev, dma_mask);
|
||||||
|
|
||||||
if (dev_is_pci(dev)) {
|
|
||||||
struct pci_dev *pdev = to_pci_dev(dev);
|
|
||||||
struct pci_controller *phb = pci_bus_to_host(pdev->bus);
|
|
||||||
if (phb->controller_ops.dma_set_mask)
|
|
||||||
return phb->controller_ops.dma_set_mask(pdev, dma_mask);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!dev->dma_mask || !dma_supported(dev, dma_mask))
|
if (!dev->dma_mask || !dma_supported(dev, dma_mask))
|
||||||
return -EIO;
|
return -EIO;
|
||||||
*dev->dma_mask = dma_mask;
|
*dev->dma_mask = dma_mask;
|
||||||
|
|
Loading…
Reference in New Issue