static int c2000_spi_resume(struct platform_device *pdev) { struct dw_spi_c2000 *dwsmmio = platform_get_drvdata(pdev); struct dw_spi *dws = &dwsmmio->dws; return dw_spi_resume_host(dws); }
static int spi_dw_pci_runtime_resume(struct device *dev) { struct pci_dev *pdev = to_pci_dev(dev); struct dw_spi_pci *dwpci = pci_get_drvdata(pdev); dev_dbg(dev, "pci_runtime_resume called\n"); return dw_spi_resume_host(&dwpci->dws); }
static int rockchip_spi_resume(struct device *dev) { struct rockchip_spi_driver_data *sdd = dev_get_drvdata(dev); int ret = 0; ret = dw_spi_resume_host(&sdd->dws); return ret; }
static int spi_resume(struct pci_dev *pdev) { struct dw_spi_pci *dwpci = pci_get_drvdata(pdev); int ret; pci_set_power_state(pdev, PCI_D0); pci_restore_state(pdev); ret = pci_enable_device(pdev); if (ret) return ret; return dw_spi_resume_host(&dwpci->dws); }