static int dw_pci_resume_early(struct device *dev) { struct pci_dev *pci = to_pci_dev(dev); struct dw_dma_chip *chip = pci_get_drvdata(pci); return dw_dma_resume(chip); };
static int dw_resume_early(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); struct dw_dma_chip *chip = platform_get_drvdata(pdev); return dw_dma_resume(chip); }