git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pwm: tiehrpwm: Use DEFINE_SIMPLE_DEV_PM_OPS for PM functions
[sfrench/cifs-2.6.git]
/
drivers
/
pwm
/
pwm-tiehrpwm.c
diff --git
a/drivers/pwm/pwm-tiehrpwm.c
b/drivers/pwm/pwm-tiehrpwm.c
index 66ac2655845f783a20bf5efd7f974f061ee5ee25..af231fa74fa9011e50f8d425e9e1cc1b1e433c13 100644
(file)
--- a/
drivers/pwm/pwm-tiehrpwm.c
+++ b/
drivers/pwm/pwm-tiehrpwm.c
@@
-521,7
+521,6
@@
static void ehrpwm_pwm_remove(struct platform_device *pdev)
pm_runtime_disable(&pdev->dev);
}
pm_runtime_disable(&pdev->dev);
}
-#ifdef CONFIG_PM_SLEEP
static void ehrpwm_pwm_save_context(struct ehrpwm_pwm_chip *pc)
{
pm_runtime_get_sync(pc->chip.dev);
static void ehrpwm_pwm_save_context(struct ehrpwm_pwm_chip *pc)
{
pm_runtime_get_sync(pc->chip.dev);
@@
-589,16
+588,15
@@
static int ehrpwm_pwm_resume(struct device *dev)
return 0;
}
return 0;
}
-#endif
-static SIMPLE_DEV_PM_OPS(ehrpwm_pwm_pm_ops, ehrpwm_pwm_suspend,
- ehrpwm_pwm_resume);
+static
DEFINE_
SIMPLE_DEV_PM_OPS(ehrpwm_pwm_pm_ops, ehrpwm_pwm_suspend,
+
ehrpwm_pwm_resume);
static struct platform_driver ehrpwm_pwm_driver = {
.driver = {
.name = "ehrpwm",
.of_match_table = ehrpwm_of_match,
static struct platform_driver ehrpwm_pwm_driver = {
.driver = {
.name = "ehrpwm",
.of_match_table = ehrpwm_of_match,
- .pm =
&ehrpwm_pwm_pm_ops
,
+ .pm =
pm_ptr(&ehrpwm_pwm_pm_ops)
,
},
.probe = ehrpwm_pwm_probe,
.remove_new = ehrpwm_pwm_remove,
},
.probe = ehrpwm_pwm_probe,
.remove_new = ehrpwm_pwm_remove,