From patchwork Wed Feb 8 18:37:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 9563131 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2F296601E5 for ; Wed, 8 Feb 2017 18:56:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1608D25D9E for ; Wed, 8 Feb 2017 18:56:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 08F25284F8; Wed, 8 Feb 2017 18:56:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7718525D9E for ; Wed, 8 Feb 2017 18:56:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751176AbdBHS4K (ORCPT ); Wed, 8 Feb 2017 13:56:10 -0500 Received: from newton.telenet-ops.be ([195.130.132.45]:33732 "EHLO newton.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752027AbdBHSqQ (ORCPT ); Wed, 8 Feb 2017 13:46:16 -0500 X-Greylist: delayed 420 seconds by postgrey-1.27 at vger.kernel.org; Wed, 08 Feb 2017 13:46:16 EST Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [IPv6:2a02:1800:110:4::f00:19]) by newton.telenet-ops.be (Postfix) with ESMTPS id 3vJVNF36VjzMt4RC for ; Wed, 8 Feb 2017 19:38:53 +0100 (CET) Received: from ayla.of.borg ([84.193.137.253]) by laurent.telenet-ops.be with bizsmtp id iJdq1u00E5UCtCs01JdqkG; Wed, 08 Feb 2017 19:37:50 +0100 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.82) (envelope-from ) id 1cbX7m-0005to-7d; Wed, 08 Feb 2017 19:37:50 +0100 Received: from geert by ramsan with local (Exim 4.82) (envelope-from ) id 1cbX7u-0005bi-GP; Wed, 08 Feb 2017 19:37:58 +0100 From: Geert Uytterhoeven To: "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] PM / Domains: Provide dummy governors if CONFIG_PM_GENERIC_DOMAINS=n Date: Wed, 8 Feb 2017 19:37:55 +0100 Message-Id: <1486579075-21498-1-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 1.9.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This allows to compile-test drivers that refer to governors (always by reference) when CONFIG_PM_GENERIC_DOMAINS=n. Signed-off-by: Geert Uytterhoeven Acked-by: Ulf Hansson --- include/linux/pm_domain.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index 81ece61075dff0e7..5339ed5bd6f9d04a 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -182,6 +182,9 @@ static inline int pm_genpd_remove(struct generic_pm_domain *genpd) { return -ENOTSUPP; } + +#define simple_qos_governor (*(struct dev_power_governor *)(NULL)) +#define pm_domain_always_on_gov (*(struct dev_power_governor *)(NULL)) #endif static inline int pm_genpd_add_device(struct generic_pm_domain *genpd,