Commit 60d6977c authored by Chanwoo Choi's avatar Chanwoo Choi Committed by MyungJoo Ham

PM / devfreq: exynos4: Use SIMPLE_DEV_PM_OPS macro

This patch use SIMPLE_DEV_PM_OPS macro instead of legacy method.
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: default avatarTomasz Figa <t.figa@samsung.com>
Signed-off-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
parent 45c58e93
...@@ -1119,6 +1119,7 @@ static int exynos4_busfreq_remove(struct platform_device *pdev) ...@@ -1119,6 +1119,7 @@ static int exynos4_busfreq_remove(struct platform_device *pdev)
return 0; return 0;
} }
#ifdef CONFIG_PM_SLEEP
static int exynos4_busfreq_resume(struct device *dev) static int exynos4_busfreq_resume(struct device *dev)
{ {
struct busfreq_data *data = dev_get_drvdata(dev); struct busfreq_data *data = dev_get_drvdata(dev);
...@@ -1126,10 +1127,9 @@ static int exynos4_busfreq_resume(struct device *dev) ...@@ -1126,10 +1127,9 @@ static int exynos4_busfreq_resume(struct device *dev)
busfreq_mon_reset(data); busfreq_mon_reset(data);
return 0; return 0;
} }
#endif
static const struct dev_pm_ops exynos4_busfreq_pm = { static SIMPLE_DEV_PM_OPS(exynos4_busfreq_pm_ops, NULL, exynos4_busfreq_resume);
.resume = exynos4_busfreq_resume,
};
static const struct platform_device_id exynos4_busfreq_id[] = { static const struct platform_device_id exynos4_busfreq_id[] = {
{ "exynos4210-busfreq", TYPE_BUSF_EXYNOS4210 }, { "exynos4210-busfreq", TYPE_BUSF_EXYNOS4210 },
...@@ -1145,7 +1145,7 @@ static struct platform_driver exynos4_busfreq_driver = { ...@@ -1145,7 +1145,7 @@ static struct platform_driver exynos4_busfreq_driver = {
.driver = { .driver = {
.name = "exynos4-busfreq", .name = "exynos4-busfreq",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = &exynos4_busfreq_pm, .pm = &exynos4_busfreq_pm_ops,
}, },
}; };
......
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