aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-tipwmss.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pwm/pwm-tipwmss.c')
-rw-r--r--drivers/pwm/pwm-tipwmss.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/pwm/pwm-tipwmss.c b/drivers/pwm/pwm-tipwmss.c
index 829f4991c96f..7fa85a1604da 100644
--- a/drivers/pwm/pwm-tipwmss.c
+++ b/drivers/pwm/pwm-tipwmss.c
@@ -34,7 +34,6 @@ static int pwmss_probe(struct platform_device *pdev)
34 struct device_node *node = pdev->dev.of_node; 34 struct device_node *node = pdev->dev.of_node;
35 35
36 pm_runtime_enable(&pdev->dev); 36 pm_runtime_enable(&pdev->dev);
37 pm_runtime_get_sync(&pdev->dev);
38 37
39 /* Populate all the child nodes here... */ 38 /* Populate all the child nodes here... */
40 ret = of_platform_populate(node, NULL, NULL, &pdev->dev); 39 ret = of_platform_populate(node, NULL, NULL, &pdev->dev);
@@ -46,31 +45,13 @@ static int pwmss_probe(struct platform_device *pdev)
46 45
47static int pwmss_remove(struct platform_device *pdev) 46static int pwmss_remove(struct platform_device *pdev)
48{ 47{
49 pm_runtime_put_sync(&pdev->dev);
50 pm_runtime_disable(&pdev->dev); 48 pm_runtime_disable(&pdev->dev);
51 return 0; 49 return 0;
52} 50}
53 51
54#ifdef CONFIG_PM_SLEEP
55static int pwmss_suspend(struct device *dev)
56{
57 pm_runtime_put_sync(dev);
58 return 0;
59}
60
61static int pwmss_resume(struct device *dev)
62{
63 pm_runtime_get_sync(dev);
64 return 0;
65}
66#endif
67
68static SIMPLE_DEV_PM_OPS(pwmss_pm_ops, pwmss_suspend, pwmss_resume);
69
70static struct platform_driver pwmss_driver = { 52static struct platform_driver pwmss_driver = {
71 .driver = { 53 .driver = {
72 .name = "pwmss", 54 .name = "pwmss",
73 .pm = &pwmss_pm_ops,
74 .of_match_table = pwmss_of_match, 55 .of_match_table = pwmss_of_match,
75 }, 56 },
76 .probe = pwmss_probe, 57 .probe = pwmss_probe,