Skip to content

Commit

Permalink
PM / devfreq: exynos4: Use SIMPLE_DEV_PM_OPS macro
Browse files Browse the repository at this point in the history
This patch use SIMPLE_DEV_PM_OPS macro instead of legacy method.

Signed-off-by: Chanwoo Choi <[email protected]>
Reviewed-by: Tomasz Figa <[email protected]>
Signed-off-by: MyungJoo Ham <[email protected]>
  • Loading branch information
chanwoochoi authored and myungjoo committed May 24, 2014
1 parent 45c58e9 commit 60d6977
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/devfreq/exynos/exynos4_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -1119,17 +1119,17 @@ static int exynos4_busfreq_remove(struct platform_device *pdev)
return 0;
}

#ifdef CONFIG_PM_SLEEP
static int exynos4_busfreq_resume(struct device *dev)
{
struct busfreq_data *data = dev_get_drvdata(dev);

busfreq_mon_reset(data);
return 0;
}
#endif

static const struct dev_pm_ops exynos4_busfreq_pm = {
.resume = exynos4_busfreq_resume,
};
static SIMPLE_DEV_PM_OPS(exynos4_busfreq_pm_ops, NULL, exynos4_busfreq_resume);

static const struct platform_device_id exynos4_busfreq_id[] = {
{ "exynos4210-busfreq", TYPE_BUSF_EXYNOS4210 },
Expand All @@ -1145,7 +1145,7 @@ static struct platform_driver exynos4_busfreq_driver = {
.driver = {
.name = "exynos4-busfreq",
.owner = THIS_MODULE,
.pm = &exynos4_busfreq_pm,
.pm = &exynos4_busfreq_pm_ops,
},
};

Expand Down

0 comments on commit 60d6977

Please sign in to comment.