From patchwork Wed Sep 3 10:52:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 36557 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 84E0F2039B for ; Wed, 3 Sep 2014 10:53:16 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wp18sf44415952obc.5 for ; Wed, 03 Sep 2014 03:53:16 -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:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=WKwfca0d/s6BBxO1N6TMvPW4FqDGcrEjumsqBC02RbM=; b=kCF9HnCYP6IisP5iGr10IpjHYFLdgXZCFZA5Xmz5+4b3MSRjDhEv+IpSsszTRGmOfz bdsoDoiJABZlSf5JBqwtXPIBIZ3jGjZOXY6dDJrp6uKreBrctCAf0ibKL0T1IpHy5k7L Bl1PQI4Fycsu4GD6IqQ/ItvgUZuaqUCDkCBYeICq5CSaP7E7D6J5F9SiLm4taB7GPJCa 0Q0ZGncvBQDRm+c4GvOGjQYSvlPWPQeXheG75wOSPs/rsHAaeU6AqmpowOXLFh7NXbId Opp7YkIzLvVgo2MtK89A71OcmxvFss4M6OSUfYhVmxex0dMt6FGZUhANss9hv2KNOIs3 +CBQ== X-Gm-Message-State: ALoCoQlWKIW6QGmtjMaBOm32dhNGaH2o73dNMCrYdEZ5wr0KunGUpYbnhtYOlBgKCrx7TORWZqS4 X-Received: by 10.182.18.8 with SMTP id s8mr21338454obd.21.1409741596192; Wed, 03 Sep 2014 03:53:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.28.9 with SMTP id 9ls22516qgy.52.gmail; Wed, 03 Sep 2014 03:53:16 -0700 (PDT) X-Received: by 10.220.167.9 with SMTP id o9mr34692214vcy.8.1409741596115; Wed, 03 Sep 2014 03:53:16 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id um5si3428320vcb.53.2014.09.03.03.53.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 03:53:16 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id hq11so8350640vcb.8 for ; Wed, 03 Sep 2014 03:53:16 -0700 (PDT) X-Received: by 10.220.105.201 with SMTP id u9mr34725433vco.11.1409741595976; Wed, 03 Sep 2014 03:53:15 -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.221.45.67 with SMTP id uj3csp660758vcb; Wed, 3 Sep 2014 03:53:15 -0700 (PDT) X-Received: by 10.194.118.232 with SMTP id kp8mr46020897wjb.42.1409741594554; Wed, 03 Sep 2014 03:53:14 -0700 (PDT) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id hm4si9998366wjc.3.2014.09.03.03.53.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 03:53:09 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 74.125.82.50 as permitted sender) client-ip=74.125.82.50; Received: by mail-wg0-f50.google.com with SMTP id x12so8247944wgg.33 for ; Wed, 03 Sep 2014 03:53:08 -0700 (PDT) X-Received: by 10.194.118.232 with SMTP id kp8mr46020235wjb.42.1409741588679; Wed, 03 Sep 2014 03:53:08 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id j7sm3968190wia.9.2014.09.03.03.53.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Sep 2014 03:53:08 -0700 (PDT) From: Ulf Hansson To: "Rafael J. Wysocki" , Len Brown , Pavel Machek , linux-pm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-sh@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Geert Uytterhoeven , Kevin Hilman , Daniel Lezcano , Tomasz Figa , Simon Horman , Magnus Damm , Ben Dooks , Kukjin Kim , Stephen Boyd , Philipp Zabel , Mark Brown , Ulf Hansson Subject: [PATCH 09/15] PM / Domains: Remove genpd_queue_power_off_work() API Date: Wed, 3 Sep 2014 12:52:25 +0200 Message-Id: <1409741551-16437-10-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1409741551-16437-1-git-send-email-ulf.hansson@linaro.org> References: <1409741551-16437-1-git-send-email-ulf.hansson@linaro.org> 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.220.177 as permitted sender) smtp.mail=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: , There are no active users of this API. Let's remove it and if future needs shows up we could consider to have a get/put API instead. Signed-off-by: Ulf Hansson --- drivers/base/power/domain.c | 5 ++++- include/linux/pm_domain.h | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 601e35b..d71d045 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -422,7 +422,7 @@ static bool genpd_abort_poweroff(struct generic_pm_domain *genpd) * Queue up the execution of pm_genpd_poweroff() unless it's already been done * before. */ -void genpd_queue_power_off_work(struct generic_pm_domain *genpd) +static void genpd_queue_power_off_work(struct generic_pm_domain *genpd) { queue_work(pm_wq, &genpd->power_off_work); } @@ -729,6 +729,9 @@ static inline int genpd_dev_pm_qos_notifier(struct notifier_block *nb, return NOTIFY_DONE; } +static inline void +genpd_queue_power_off_work(struct generic_pm_domain *genpd) {} + static inline void genpd_power_off_work_fn(struct work_struct *work) {} #define pm_genpd_runtime_suspend NULL diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index eeba1a4..abeb5dc 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -258,10 +258,8 @@ static inline int pm_genpd_name_add_device(const char *domain_name, } #ifdef CONFIG_PM_GENERIC_DOMAINS_RUNTIME -extern void genpd_queue_power_off_work(struct generic_pm_domain *genpd); extern void pm_genpd_poweroff_unused(void); #else -static inline void genpd_queue_power_off_work(struct generic_pm_domain *gpd) {} static inline void pm_genpd_poweroff_unused(void) {} #endif