lkml.org 
[lkml]   [2015]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/3] usb: chipidea: core: fix when building without CONFIG_PM support
Date
If CONFIG_PM or CONFIG_PM_SLEEP is not set, driver will not compile
properly.

Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
---
drivers/usb/chipidea/core.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c
index 3ad48e1..4182549 100644
--- a/drivers/usb/chipidea/core.c
+++ b/drivers/usb/chipidea/core.c
@@ -1009,18 +1009,22 @@ static int ci_runtime_resume(struct device *dev)
return ci_controller_resume(dev);
}

-#endif /* CONFIG_PM */
static const struct dev_pm_ops ci_pm_ops = {
+#ifdef CONFIG_PM_SLEEP
SET_SYSTEM_SLEEP_PM_OPS(ci_suspend, ci_resume)
+#endif /* CONFIG_PM_SLEEP */
SET_RUNTIME_PM_OPS(ci_runtime_suspend, ci_runtime_resume, NULL)
};
+#endif /* CONFIG_PM */

static struct platform_driver ci_hdrc_driver = {
.probe = ci_hdrc_probe,
.remove = ci_hdrc_remove,
.driver = {
.name = "ci_hdrc",
+#ifdef CONFIG_PM
.pm = &ci_pm_ops,
+#endif
},
};

--
2.1.4


\
 
 \ /
  Last update: 2015-09-22 21:21    [W:0.169 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site