From patchwork Tue Oct 6 12:27:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 54530 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 6BD1E22FC5 for ; Tue, 6 Oct 2015 12:27:56 +0000 (UTC) Received: by lbwr8 with SMTP id r8sf47463062lbw.0 for ; Tue, 06 Oct 2015 05:27:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=TfGyYO/u5V5GJK9Qtrt63ce7bJpDLKSY2SuPzPnPIkM=; b=BhOcSAJ3H09zcFHm8xGDX/u2jS3kEYl+FupxPCDnmIwVvH9U79AXOJzD2mrJzVwEHL 4pcgpQufR2h44t7awe98ESocq3MiKBwmQc5mVsbNkelbe5cT412hP818QWSed2m83K6W o4NJePzOD469x1S2wjsp6kHo7C4PIMePLmnBBdWP5uqVlbGwHx1xAgL1aQHkMPFP8QJE ZhxVoeBklS8Ht9ZgvuHXV0cV0TvMHNuGuluH8zkG0Es0JZMDowqp4sVc67sj+H7xvCHw 6PKvdapD+tGvRlwNLdS9ZDSS+c4B0t2dYLvQVCnRNFhEwzbh3GfGvlWhz6MSU7vTtXnM tOMw== X-Gm-Message-State: ALoCoQnYvOcZb/ww/dkKr/pA4DVxvGTz8qyJRsgIq8vxu0DgpLgyPENgKayStfgjIpNFSKpFtqRi X-Received: by 10.112.26.212 with SMTP id n20mr6448818lbg.2.1444134475399; Tue, 06 Oct 2015 05:27:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.81.148 with SMTP id f142ls518628lfb.68.gmail; Tue, 06 Oct 2015 05:27:55 -0700 (PDT) X-Received: by 10.25.25.76 with SMTP id 73mr9502377lfz.91.1444134475262; Tue, 06 Oct 2015 05:27:55 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id so9si20713064lbb.137.2015.10.06.05.27.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Oct 2015 05:27:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbbwt4 with SMTP id wt4so37501259lbb.1 for ; Tue, 06 Oct 2015 05:27:55 -0700 (PDT) X-Received: by 10.25.145.132 with SMTP id t126mr9399122lfd.88.1444134475162; Tue, 06 Oct 2015 05:27:55 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1821128lbq; Tue, 6 Oct 2015 05:27:54 -0700 (PDT) X-Received: by 10.112.16.199 with SMTP id i7mr14318297lbd.105.1444134474670; Tue, 06 Oct 2015 05:27:54 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id y191si20728184lfd.174.2015.10.06.05.27.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Oct 2015 05:27:54 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbos8 with SMTP id s8so75162448lbo.0 for ; Tue, 06 Oct 2015 05:27:54 -0700 (PDT) X-Received: by 10.25.33.145 with SMTP id h139mr8984942lfh.123.1444134474539; Tue, 06 Oct 2015 05:27:54 -0700 (PDT) Received: from localhost.localdomain (c-83-233-167-104.cust.bredband2.com. [83.233.167.104]) by smtp.gmail.com with ESMTPSA id rf8sm2336792lbb.20.2015.10.06.05.27.53 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Oct 2015 05:27:53 -0700 (PDT) From: Ulf Hansson To: "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , linux-pm@vger.kernel.org Cc: Len Brown , Pavel Machek , Geert Uytterhoeven , Lina Iyer , Krzysztof Kozlowski Subject: [PATCH 3/4] PM / Domains: Remove pm_genpd_poweron() API Date: Tue, 6 Oct 2015 14:27:51 +0200 Message-Id: <1444134471-17979-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Once genpd could be configured to be built with CONFIG_PM_RUNTIME unset (nowadays CONFIG_PM), the pm_genpd_poweron() API served a purpose, since it allowed users to power on a PM domain. As such configuration no longer is supported, users shall solely rely on using some of the runtime PM APIs to power on a PM domain. Signed-off-by: Ulf Hansson --- drivers/base/power/domain.c | 4 +++- include/linux/pm_domain.h | 5 ----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 432d4e3..c2c0de9 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -192,6 +192,8 @@ static void genpd_queue_power_off_work(struct generic_pm_domain *genpd) queue_work(pm_wq, &genpd->power_off_work); } +static int pm_genpd_poweron(struct generic_pm_domain *genpd); + /** * __pm_genpd_poweron - Restore power to a given PM domain and its masters. * @genpd: PM domain to power up. @@ -245,7 +247,7 @@ static int __pm_genpd_poweron(struct generic_pm_domain *genpd) * pm_genpd_poweron - Restore power to a given PM domain and its masters. * @genpd: PM domain to power up. */ -int pm_genpd_poweron(struct generic_pm_domain *genpd) +static int pm_genpd_poweron(struct generic_pm_domain *genpd) { int ret; diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index faa6922..edc2744 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -126,7 +126,6 @@ extern int pm_genpd_remove_subdomain(struct generic_pm_domain *genpd, struct generic_pm_domain *target); extern void pm_genpd_init(struct generic_pm_domain *genpd, struct dev_power_governor *gov, bool is_off); -extern int pm_genpd_poweron(struct generic_pm_domain *genpd); extern struct dev_power_governor simple_qos_governor; extern struct dev_power_governor pm_domain_always_on_gov; @@ -165,10 +164,6 @@ static inline void pm_genpd_init(struct generic_pm_domain *genpd, struct dev_power_governor *gov, bool is_off) { } -static inline int pm_genpd_poweron(struct generic_pm_domain *genpd) -{ - return -ENOSYS; -} #endif static inline int pm_genpd_add_device(struct generic_pm_domain *genpd,