aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/devfreq/exynos/exynos5_bus.c
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2014-03-19 22:59:12 -0400
committerMyungJoo Ham <myungjoo.ham@samsung.com>2014-05-24 04:56:37 -0400
commitedb06a2d4226c65e1c03c279963ca0ede9ccf990 (patch)
tree2b586a04eb0a1074fba7fdfaca4b99ffd39e6cdb /drivers/devfreq/exynos/exynos5_bus.c
parentb0d5068a9c6a9cad8bdca13d5c578553fe2b315a (diff)
PM / devfreq: exynos5: Use SIMPLE_DEV_PM_OPS macro
This patch use SIMPLE_DEV_PM_OPS macro instead of legacy method. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Reviewed-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/devfreq/exynos/exynos5_bus.c')
-rw-r--r--drivers/devfreq/exynos/exynos5_bus.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/devfreq/exynos/exynos5_bus.c b/drivers/devfreq/exynos/exynos5_bus.c
index 6eef1f7397c6..af6213fa39ba 100644
--- a/drivers/devfreq/exynos/exynos5_bus.c
+++ b/drivers/devfreq/exynos/exynos5_bus.c
@@ -429,6 +429,7 @@ static int exynos5_busfreq_int_remove(struct platform_device *pdev)
429 return 0; 429 return 0;
430} 430}
431 431
432#ifdef CONFIG_PM_SLEEP
432static int exynos5_busfreq_int_resume(struct device *dev) 433static int exynos5_busfreq_int_resume(struct device *dev)
433{ 434{
434 struct platform_device *pdev = container_of(dev, struct platform_device, 435 struct platform_device *pdev = container_of(dev, struct platform_device,
@@ -438,10 +439,12 @@ static int exynos5_busfreq_int_resume(struct device *dev)
438 busfreq_mon_reset(data); 439 busfreq_mon_reset(data);
439 return 0; 440 return 0;
440} 441}
441
442static const struct dev_pm_ops exynos5_busfreq_int_pm = { 442static const struct dev_pm_ops exynos5_busfreq_int_pm = {
443 .resume = exynos5_busfreq_int_resume, 443 .resume = exynos5_busfreq_int_resume,
444}; 444};
445#endif
446static SIMPLE_DEV_PM_OPS(exynos5_busfreq_int_pm_ops, NULL,
447 exynos5_busfreq_int_resume);
445 448
446/* platform device pointer for exynos5 devfreq device. */ 449/* platform device pointer for exynos5 devfreq device. */
447static struct platform_device *exynos5_devfreq_pdev; 450static struct platform_device *exynos5_devfreq_pdev;
@@ -452,7 +455,7 @@ static struct platform_driver exynos5_busfreq_int_driver = {
452 .driver = { 455 .driver = {
453 .name = "exynos5-bus-int", 456 .name = "exynos5-bus-int",
454 .owner = THIS_MODULE, 457 .owner = THIS_MODULE,
455 .pm = &exynos5_busfreq_int_pm, 458 .pm = &exynos5_busfreq_int_pm_ops,
456 }, 459 },
457}; 460};
458 461