From patchwork Tue Jun 10 10:51:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 31634 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f72.google.com (mail-oa0-f72.google.com [209.85.219.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C79CE20675 for ; Tue, 10 Jun 2014 10:52:38 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id eb12sf9751548oac.11 for ; Tue, 10 Jun 2014 03:52:38 -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=aDsT9p/EFURjMdPxLdVD6bRqrM8ppfAemGbMR3oooEY=; b=Hl4F+2blUXrerMMgJTEULGVUopYVdOtzRSyrhq8iOPDnE7nllRgSQX8lk0P9XQ/s2q xxd43MRLjtPQWV7fjii2Dkyv+a/sdpnfbZ6xBoAjbw3bJv0ze67Fuh7hrQgOcKxVu08g m5DytXJ+cdFRYsGalAzFxOc8wsi5lRXcmCICxa+DBA+1vu0TfNOUcZ3IYNsHQImSOj4+ ckjAU72TJ4OAwPzi3d1lLTCCiVYoBYnkDLeGLIKfO+7E5GYtWF3Uffi9dL0jB/iUyqcQ afxI+pbjtVKrZhmt5IOTpkkmX1Prmubdt7Ct2dP5483zmrK71Xvc1mAsgJWx7DO47IHy hQUA== X-Gm-Message-State: ALoCoQm0+jEsO9SDQuwC8DDz9C3yv2d7EEXcZyLh9l9pqdXxkoOruNus3oMME2UkxY7KDVNryllN X-Received: by 10.42.92.69 with SMTP id s5mr4010856icm.20.1402397558417; Tue, 10 Jun 2014 03:52:38 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.97.200 with SMTP id m66ls1988459qge.83.gmail; Tue, 10 Jun 2014 03:52:38 -0700 (PDT) X-Received: by 10.58.29.198 with SMTP id m6mr31589340veh.15.1402397558282; Tue, 10 Jun 2014 03:52:38 -0700 (PDT) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id fy7si12918037vdc.42.2014.06.10.03.52.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 03:52:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.178 as permitted sender) client-ip=209.85.128.178; Received: by mail-ve0-f178.google.com with SMTP id sa20so7840040veb.23 for ; Tue, 10 Jun 2014 03:52:38 -0700 (PDT) X-Received: by 10.58.195.172 with SMTP id if12mr6948544vec.12.1402397558206; Tue, 10 Jun 2014 03:52:38 -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.54.6 with SMTP id vs6csp215550vcb; Tue, 10 Jun 2014 03:52:37 -0700 (PDT) X-Received: by 10.152.43.167 with SMTP id x7mr27381lal.85.1402397556317; Tue, 10 Jun 2014 03:52:36 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com [209.85.215.49]) by mx.google.com with ESMTPS id qt6si41852732lbb.40.2014.06.10.03.52.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 03:52:36 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id pv20so3756456lab.22 for ; Tue, 10 Jun 2014 03:52:35 -0700 (PDT) X-Received: by 10.113.3.139 with SMTP id bw11mr1137849lbd.63.1402397555820; Tue, 10 Jun 2014 03:52:35 -0700 (PDT) Received: from linaro-ulf.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id y6sm18329925laj.17.2014.06.10.03.52.33 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 03:52:35 -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, Kevin Hilman , Alan Stern , Greg Kroah-Hartman , Daniel Lezcano , Tomasz Figa , devicetree@vger.kernel.org, Linus Walleij , Simon Horman , Magnus Damm , Ben Dooks , Kukjin Kim , Stephen Boyd , Philipp Zabel , Mark Brown , Ulf Hansson Subject: [PATCH 13/24] PM / Domains: Remove genpd_queue_power_off_work() API Date: Tue, 10 Jun 2014 12:51:26 +0200 Message-Id: <1402397497-26737-14-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1402397497-26737-1-git-send-email-ulf.hansson@linaro.org> References: <1402397497-26737-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.128.178 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 which 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 2d20766..825e81d 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -423,7 +423,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); } @@ -730,6 +730,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 eacf6a1..5cd8000 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -241,10 +241,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