Commit 2ab18dfe authored by Ed Blake's avatar Ed Blake Committed by Mark Brown

ASoC: img-spdif-out: Rename suspend / resume funcs

Rename suspend and resume functions to runtime_suspend and
runtime_resume, which is what they actually are. This will avoid
confusion when adding suspend and resume functions in a subsequent
patch.
Signed-off-by: default avatarEd Blake <ed.blake@sondrel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c7045889
...@@ -49,7 +49,7 @@ struct img_spdif_out { ...@@ -49,7 +49,7 @@ struct img_spdif_out {
struct reset_control *rst; struct reset_control *rst;
}; };
static int img_spdif_out_suspend(struct device *dev) static int img_spdif_out_runtime_suspend(struct device *dev)
{ {
struct img_spdif_out *spdif = dev_get_drvdata(dev); struct img_spdif_out *spdif = dev_get_drvdata(dev);
...@@ -58,7 +58,7 @@ static int img_spdif_out_suspend(struct device *dev) ...@@ -58,7 +58,7 @@ static int img_spdif_out_suspend(struct device *dev)
return 0; return 0;
} }
static int img_spdif_out_resume(struct device *dev) static int img_spdif_out_runtime_resume(struct device *dev)
{ {
struct img_spdif_out *spdif = dev_get_drvdata(dev); struct img_spdif_out *spdif = dev_get_drvdata(dev);
int ret; int ret;
...@@ -366,7 +366,7 @@ static int img_spdif_out_probe(struct platform_device *pdev) ...@@ -366,7 +366,7 @@ static int img_spdif_out_probe(struct platform_device *pdev)
pm_runtime_enable(&pdev->dev); pm_runtime_enable(&pdev->dev);
if (!pm_runtime_enabled(&pdev->dev)) { if (!pm_runtime_enabled(&pdev->dev)) {
ret = img_spdif_out_resume(&pdev->dev); ret = img_spdif_out_runtime_resume(&pdev->dev);
if (ret) if (ret)
goto err_pm_disable; goto err_pm_disable;
} }
...@@ -393,7 +393,7 @@ static int img_spdif_out_probe(struct platform_device *pdev) ...@@ -393,7 +393,7 @@ static int img_spdif_out_probe(struct platform_device *pdev)
err_suspend: err_suspend:
if (!pm_runtime_status_suspended(&pdev->dev)) if (!pm_runtime_status_suspended(&pdev->dev))
img_spdif_out_suspend(&pdev->dev); img_spdif_out_runtime_suspend(&pdev->dev);
err_pm_disable: err_pm_disable:
pm_runtime_disable(&pdev->dev); pm_runtime_disable(&pdev->dev);
clk_disable_unprepare(spdif->clk_sys); clk_disable_unprepare(spdif->clk_sys);
...@@ -407,7 +407,7 @@ static int img_spdif_out_dev_remove(struct platform_device *pdev) ...@@ -407,7 +407,7 @@ static int img_spdif_out_dev_remove(struct platform_device *pdev)
pm_runtime_disable(&pdev->dev); pm_runtime_disable(&pdev->dev);
if (!pm_runtime_status_suspended(&pdev->dev)) if (!pm_runtime_status_suspended(&pdev->dev))
img_spdif_out_suspend(&pdev->dev); img_spdif_out_runtime_suspend(&pdev->dev);
clk_disable_unprepare(spdif->clk_sys); clk_disable_unprepare(spdif->clk_sys);
...@@ -421,8 +421,8 @@ static const struct of_device_id img_spdif_out_of_match[] = { ...@@ -421,8 +421,8 @@ static const struct of_device_id img_spdif_out_of_match[] = {
MODULE_DEVICE_TABLE(of, img_spdif_out_of_match); MODULE_DEVICE_TABLE(of, img_spdif_out_of_match);
static const struct dev_pm_ops img_spdif_out_pm_ops = { static const struct dev_pm_ops img_spdif_out_pm_ops = {
SET_RUNTIME_PM_OPS(img_spdif_out_suspend, SET_RUNTIME_PM_OPS(img_spdif_out_runtime_suspend,
img_spdif_out_resume, NULL) img_spdif_out_runtime_resume, NULL)
}; };
static struct platform_driver img_spdif_out_driver = { static struct platform_driver img_spdif_out_driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment