From patchwork Tue Jan 20 10:33:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 43344 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1A931218DB for ; Tue, 20 Jan 2015 10:33:19 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id r20sf5840622wiv.2 for ; Tue, 20 Jan 2015 02:33:18 -0800 (PST) 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=kp7UoSHZCzXLiLkpX6Z/dIRgbhWGT/w+mdfzwdrQKq8=; b=aBQSGm6HAe1tGkI6RwySgFUBITYvjB07GGZQvFa1aXV1Ia9WVaQFI/0FkC/c4Had2T xZdnMeRSzNHExF4K/P4S1uHGB4hDiy7PyfXDHjPAvGdYyOCBha38a7cUMYrXycSy3cxc 1o13EuEj8tCloiM1M3aik2urwqK/ZmOM7Y8PGVLGi3OHW4I6OkDr3kM1pe8CVkSusbuq nhskxrQVSmCc0EG1qhDVJ3O0d/HNLEGU+kLv3/RSxaq482vycZnlpCAU05IxA16iKFvm CTdw5ACxaqF6+cu09RKjP/+VOltwP3v91NDFYGZUxr0MmqRBNC0rr7zr+r1z6QAr+bo1 G/LA== X-Gm-Message-State: ALoCoQlVkzoHv98j1q09k06NpyC40OJOH9naws/+mTOPQEME7TDzbHhqjj4Xg6Xx8tqESP644bKe X-Received: by 10.180.19.133 with SMTP id f5mr2714403wie.6.1421749998404; Tue, 20 Jan 2015 02:33:18 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.10.67 with SMTP id g3ls670324lab.25.gmail; Tue, 20 Jan 2015 02:33:18 -0800 (PST) X-Received: by 10.152.27.228 with SMTP id w4mr37097126lag.75.1421749998254; Tue, 20 Jan 2015 02:33:18 -0800 (PST) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id pw5si14789045lbb.93.2015.01.20.02.33.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 Jan 2015 02:33:18 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by mail-la0-f48.google.com with SMTP id gf13so33327409lab.7 for ; Tue, 20 Jan 2015 02:33:18 -0800 (PST) X-Received: by 10.112.131.1 with SMTP id oi1mr36562697lbb.2.1421749998115; Tue, 20 Jan 2015 02:33:18 -0800 (PST) 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.9.200 with SMTP id c8csp1368505lbb; Tue, 20 Jan 2015 02:33:17 -0800 (PST) X-Received: by 10.112.172.194 with SMTP id be2mr37714755lbc.53.1421749997663; Tue, 20 Jan 2015 02:33:17 -0800 (PST) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id wz2si4140510lbb.65.2015.01.20.02.33.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 Jan 2015 02:33:17 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by mail-lb0-f169.google.com with SMTP id f15so12034956lbj.0 for ; Tue, 20 Jan 2015 02:33:17 -0800 (PST) X-Received: by 10.112.17.197 with SMTP id q5mr37289850lbd.30.1421749997498; Tue, 20 Jan 2015 02:33:17 -0800 (PST) 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 xh7sm3912372lbb.17.2015.01.20.02.33.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jan 2015 02:33:16 -0800 (PST) From: Ulf Hansson To: "Rafael J. Wysocki" , Len Brown , Pavel Machek , Kevin Hilman , linux-pm@vger.kernel.org Cc: Geert Uytterhoeven , Dmitry Torokhov , Sylwester Nawrocki , Amit Daniel Kachhap , Ulf Hansson Subject: [PATCH] PM / Domains: Remove pm_genpd_dev_need_restore() API Date: Tue, 20 Jan 2015 11:33:09 +0100 Message-Id: <1421749989-23813-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 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.215.48 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 0d8780c..c5280f2 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -1559,26 +1559,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 ? 1 : 0; - - 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 a9edab2..ed60776 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -140,7 +140,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, @@ -187,7 +186,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) {