From patchwork Wed Oct 1 14:41:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 38242 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D2D52202E7 for ; Wed, 1 Oct 2014 14:41:58 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id 10sf712568lbg.1 for ; Wed, 01 Oct 2014 07:41:57 -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=3BprezAyAgWxhDgfolt81jpbYivH8lNQY5QBUWnuF9M=; b=KzRK7UkCKZjSs/GXJ/td+HzI5pW26GmAnsTiUti9EguCxvSfqHIPxjWSB72tOhTH6j jhovGNoVdhHQM5UGPvzjWrUkxOTHlGscRPeKTr+wOVFUEyywBFkREtIEAR+PYGK+VdKP VUTvhLPeK0ABNpgVycyxosq+gkTXuFDOOZIeEy9jxHMPZzdgWunLVrFgIiA3CjiYB8q9 lRwQE334BjrZPxkxNrMmhGf6uPN9cx5Kl/ax9ckxFosKoB6zNySSxqwD2HKxmZfO7pkr eBvgP+yWBySLhrUSFoU592JlL87msM1rwqTXknse9wmw3K56ROGMkVut1313eCVDDrEP dsAg== X-Gm-Message-State: ALoCoQkEedHLQ6zywD56/6Q9HO40wTHg8iB6Pc6RnX8IyC7AOKE5ySD5kOBoju+0kk6wxEKajX85 X-Received: by 10.181.28.169 with SMTP id jp9mr2238858wid.6.1412174517437; Wed, 01 Oct 2014 07:41:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.39 with SMTP id 7ls127815lar.87.gmail; Wed, 01 Oct 2014 07:41:57 -0700 (PDT) X-Received: by 10.152.23.199 with SMTP id o7mr56259718laf.26.1412174517284; Wed, 01 Oct 2014 07:41:57 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180]) by mx.google.com with ESMTPS id qr4si1900814lbb.135.2014.10.01.07.41.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 Oct 2014 07:41:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by mail-lb0-f180.google.com with SMTP id f15so451891lbj.39 for ; Wed, 01 Oct 2014 07:41:57 -0700 (PDT) X-Received: by 10.152.5.168 with SMTP id t8mr55302448lat.67.1412174517153; Wed, 01 Oct 2014 07:41:57 -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.130.169 with SMTP id of9csp543877lbb; Wed, 1 Oct 2014 07:41:56 -0700 (PDT) X-Received: by 10.112.166.35 with SMTP id zd3mr34690984lbb.3.1412174516759; Wed, 01 Oct 2014 07:41:56 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) by mx.google.com with ESMTPS id zm10si1919036lbb.125.2014.10.01.07.41.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 Oct 2014 07:41:56 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by mail-la0-f53.google.com with SMTP id gq15so509281lab.12 for ; Wed, 01 Oct 2014 07:41:56 -0700 (PDT) X-Received: by 10.112.125.132 with SMTP id mq4mr11506227lbb.103.1412174516555; Wed, 01 Oct 2014 07:41:56 -0700 (PDT) Received: from uffe-Latitude-E6430s.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id rl6sm485466lac.17.2014.10.01.07.41.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Oct 2014 07:41:55 -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-samsung-soc@vger.kernel.org, Geert Uytterhoeven , Kevin Hilman , Alan Stern , Greg Kroah-Hartman , Tomasz Figa , Simon Horman , Magnus Damm , Ben Dooks , Kukjin Kim , Philipp Zabel , Mark Brown , Wolfram Sang , Russell King , Dmitry Torokhov , Jack Dai , Jinkun Hong , Ulf Hansson Subject: [PATCH v2 1/4] PM / Domains: Remove pm_genpd_dev_need_restore() API Date: Wed, 1 Oct 2014 16:41:31 +0200 Message-Id: <1412174494-15346-2-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1412174494-15346-1-git-send-email-ulf.hansson@linaro.org> References: <1412174494-15346-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.217.180 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 currently no users of this API, let's remove it. Additionally, if such feature would be needed future wise, a better option is likely use pm_runtime_set_active|suspended() in some form. Signed-off-by: Ulf Hansson Acked-by: Geert Uytterhoeven Acked-by: Kevin Hilman --- drivers/base/power/domain.c | 20 -------------------- include/linux/pm_domain.h | 2 -- 2 files changed, 22 deletions(-) diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 18cc68d..36871b3 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -1533,26 +1533,6 @@ int pm_genpd_remove_device(struct generic_pm_domain *genpd, } /** - * pm_genpd_dev_need_restore - Set/unset the device's "need restore" flag. - * @dev: Device to set/unset the flag for. - * @val: The new value of the device's "need restore" flag. - */ -void pm_genpd_dev_need_restore(struct device *dev, bool val) -{ - struct pm_subsys_data *psd; - unsigned long flags; - - spin_lock_irqsave(&dev->power.lock, flags); - - psd = dev_to_psd(dev); - if (psd && psd->domain_data) - to_gpd_data(psd->domain_data)->need_restore = val; - - spin_unlock_irqrestore(&dev->power.lock, flags); -} -EXPORT_SYMBOL_GPL(pm_genpd_dev_need_restore); - -/** * pm_genpd_add_subdomain - Add a subdomain to an I/O PM domain. * @genpd: Master PM domain to add the subdomain to. * @subdomain: Subdomain to be added. diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index 9004743..a21dfa9 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -129,7 +129,6 @@ extern int __pm_genpd_name_add_device(const char *domain_name, extern int pm_genpd_remove_device(struct generic_pm_domain *genpd, struct device *dev); -extern void pm_genpd_dev_need_restore(struct device *dev, bool val); extern int pm_genpd_add_subdomain(struct generic_pm_domain *genpd, struct generic_pm_domain *new_subdomain); extern int pm_genpd_add_subdomain_names(const char *master_name, @@ -175,7 +174,6 @@ static inline int pm_genpd_remove_device(struct generic_pm_domain *genpd, { return -ENOSYS; } -static inline void pm_genpd_dev_need_restore(struct device *dev, bool val) {} static inline int pm_genpd_add_subdomain(struct generic_pm_domain *genpd, struct generic_pm_domain *new_sd) {