|
@@ -588,6 +588,7 @@ static void sh_dmae_shutdown(struct platform_device *pdev)
|
|
sh_dmae_ctl_stop(shdev);
|
|
sh_dmae_ctl_stop(shdev);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#ifdef CONFIG_PM
|
|
static int sh_dmae_runtime_suspend(struct device *dev)
|
|
static int sh_dmae_runtime_suspend(struct device *dev)
|
|
{
|
|
{
|
|
return 0;
|
|
return 0;
|
|
@@ -600,7 +601,6 @@ static int sh_dmae_runtime_resume(struct device *dev)
|
|
return sh_dmae_rst(shdev);
|
|
return sh_dmae_rst(shdev);
|
|
}
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_PM
|
|
|
|
static int sh_dmae_suspend(struct device *dev)
|
|
static int sh_dmae_suspend(struct device *dev)
|
|
{
|
|
{
|
|
return 0;
|
|
return 0;
|
|
@@ -640,8 +640,8 @@ static int sh_dmae_resume(struct device *dev)
|
|
static const struct dev_pm_ops sh_dmae_pm = {
|
|
static const struct dev_pm_ops sh_dmae_pm = {
|
|
.suspend = sh_dmae_suspend,
|
|
.suspend = sh_dmae_suspend,
|
|
.resume = sh_dmae_resume,
|
|
.resume = sh_dmae_resume,
|
|
- .runtime_suspend = sh_dmae_runtime_suspend,
|
|
|
|
- .runtime_resume = sh_dmae_runtime_resume,
|
|
|
|
|
|
+ SET_RUNTIME_PM_OPS(sh_dmae_runtime_suspend, sh_dmae_runtime_resume,
|
|
|
|
+ NULL)
|
|
};
|
|
};
|
|
|
|
|
|
static dma_addr_t sh_dmae_slave_addr(struct shdma_chan *schan)
|
|
static dma_addr_t sh_dmae_slave_addr(struct shdma_chan *schan)
|