From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934476AbbIVTAL (ORCPT ); Tue, 22 Sep 2015 15:00:11 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:36789 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934306AbbIVS7s (ORCPT ); Tue, 22 Sep 2015 14:59:48 -0400 From: "Felipe F. Tonello" To: linux-usb@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Peter Chen , Greg Kroah-Hartman , Felipe Balbi , Andrzej Pietrasiewicz , "Felipe F. Tonello" Subject: [PATCH 1/3] usb: chipidea: core: fix when building without CONFIG_PM support Date: Tue, 22 Sep 2015 19:59:08 +0100 Message-Id: <1442948350-31702-1-git-send-email-eu@felipetonello.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If CONFIG_PM or CONFIG_PM_SLEEP is not set, driver will not compile properly. Signed-off-by: Felipe F. Tonello --- 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