From patchwork Mon Oct 13 14:02:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 38667 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8B4412039B for ; Mon, 13 Oct 2014 14:02:56 +0000 (UTC) Received: by mail-wg0-f72.google.com with SMTP id m15sf4124801wgh.3 for ; Mon, 13 Oct 2014 07:02: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: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=Ek4Atyu/geAN9jU2XZ3iHlfAEB0evNHWL7dY/gtvzzc=; b=mbtporoWJWUoRIQEh4i2mR170EZjQhkUo7oUAhcj+Oq6zKpj1kpLyr+A/cJa0PSma/ IeFtR/CbMhISAiS+Z0gTEcGgpm6rYbeyMtC7UEJhzIhU618tTt4H94E4EgF1wE2VduLT xE/274t1la28JuQ3NJpx27NYH0cC4MbSQGv4v9OH/W/vYib3WWeuVIkiNZS6nvAQw31M Efrx+KHsThy0Noh/NdA2kGH8UwQ1F+7wXPwZgHOHt5mv43JykEw/oV1jCwzaPR+mJY2U 5BxoJlyXpaiILEJj4f+OUPytAwAHwK8zPdaWXSMBKsgVBvKc3mmjtGgSrHVGtgqd8vy8 gmog== X-Gm-Message-State: ALoCoQl/7TzTYby+7+vLN9U2aPvwtou5jG2F3uttjRtOLsUZFdcb2ZHwLG4I2j9+cphnAMTTkOuv X-Received: by 10.180.75.133 with SMTP id c5mr195181wiw.3.1413208975702; Mon, 13 Oct 2014 07:02:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.204.107 with SMTP id kx11ls479043lac.80.gmail; Mon, 13 Oct 2014 07:02:55 -0700 (PDT) X-Received: by 10.112.130.226 with SMTP id oh2mr3145983lbb.100.1413208975550; Mon, 13 Oct 2014 07:02:55 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by mx.google.com with ESMTPS id jd2si22316710lbc.91.2014.10.13.07.02.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 13 Oct 2014 07:02:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by mail-lb0-f172.google.com with SMTP id b6so6574384lbj.3 for ; Mon, 13 Oct 2014 07:02:55 -0700 (PDT) X-Received: by 10.112.138.202 with SMTP id qs10mr23989915lbb.66.1413208975462; Mon, 13 Oct 2014 07:02: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.84.229 with SMTP id c5csp220194lbz; Mon, 13 Oct 2014 07:02:54 -0700 (PDT) X-Received: by 10.180.19.40 with SMTP id b8mr1038530wie.5.1413208970340; Mon, 13 Oct 2014 07:02:50 -0700 (PDT) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx.google.com with ESMTPS id la1si17861664wjb.5.2014.10.13.07.02.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 13 Oct 2014 07:02:50 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.212.178 as permitted sender) client-ip=209.85.212.178; Received: by mail-wi0-f178.google.com with SMTP id h11so3875899wiw.17 for ; Mon, 13 Oct 2014 07:02:50 -0700 (PDT) X-Received: by 10.194.185.115 with SMTP id fb19mr2600479wjc.117.1413208970122; Mon, 13 Oct 2014 07:02:50 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id fq1sm1533474wib.12.2014.10.13.07.02.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Oct 2014 07:02:48 -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 , Aaron Lu , Sylwester Nawrocki , Ulf Hansson Subject: [PATCH v3 9/9] PM / Domains: Remove pm_genpd_dev_need_restore() API Date: Mon, 13 Oct 2014 16:02:10 +0200 Message-Id: <1413208930-26019-10-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1413208930-26019-1-git-send-email-ulf.hansson@linaro.org> References: <1413208930-26019-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.172 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 96fe72e..a717132 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -1554,26 +1554,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 7b3cba2..d5df64e 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -130,7 +130,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, @@ -176,7 +175,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) {