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: 5076661 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 524409F65C for ; Mon, 13 Oct 2014 14:03:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5D8BA201F7 for ; Mon, 13 Oct 2014 14:03:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8B56B2020F for ; Mon, 13 Oct 2014 14:03:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754156AbaJMOCx (ORCPT ); Mon, 13 Oct 2014 10:02:53 -0400 Received: from mail-wg0-f50.google.com ([74.125.82.50]:41367 "EHLO mail-wg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754141AbaJMOCv (ORCPT ); Mon, 13 Oct 2014 10:02:51 -0400 Received: by mail-wg0-f50.google.com with SMTP id a1so8671082wgh.33 for ; Mon, 13 Oct 2014 07:02:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Ek4Atyu/geAN9jU2XZ3iHlfAEB0evNHWL7dY/gtvzzc=; b=fDLAk8L3PqbHA871o26iLO2R6p34Pe5E+qExcNXPgOeR3lvOdd+6K+DBSVuoNNeH9H UKeHPkkOhVJqAt07t6Q6kwWodr+rN1yayHM/8TX6bDRk/c/JyWHQo+HVBmvDwB7rdXmi yh83R26X6lErQBLSOa/DD0JdMBRvfProAU9SG9K1pNq8OmqPvy20u+WtJbaoIZbN4vms BnDYkfDW7Vx/NbZSWP3WXWiyJ2qsEogPMH7nvosn1khibpTtJylEDMWq2T/wh/vl/pSE 895W17XyIcPq8Qy7w4MyHvzow0S0e4PMnTEKtHHK6DVau/CMt+SBwBsYKis9v5qJIfMX OO+w== X-Gm-Message-State: ALoCoQnKiEs8Bi7/xa5vm1I2y07sYdJSWfvnKDl+s69osjfMYiAZgxxfx0Ueo/b+RURbR7KHCajV 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> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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) {