From patchwork Tue Sep 30 12:43:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 38138 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f199.google.com (mail-we0-f199.google.com [74.125.82.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A448120549 for ; Tue, 30 Sep 2014 12:44:08 +0000 (UTC) Received: by mail-we0-f199.google.com with SMTP id u56sf81421wes.2 for ; Tue, 30 Sep 2014 05:44:07 -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=/t11yGJiPyafyFFJPZLHGWSEjdGVdStJDPGuulap2f4=; b=FDA4CA7h22e9on7JzFBmEK+5nNyHOwg+Y0XIeGo08d36hOtQNqgDO2yZdllNb0feQ/ 8MYXI6NZXIbSllTxkLicSKizVN4g1/+wgjPS4YTxSuaBSPHrJqUJKhauq4f7b407FpGT EoFX0sqx5ReCQeimD0R+NxQimKjGGlJ0qVrbNvof2pzni/wCSYhGmjo83a1uWpO3110r 9N2FVGgTiTRkLueZ1NGlA0+XfZkLB5IJqkLZ9Euj6URf5CxfxjM24RB47GX4Q45ELtxZ Zidcd1VEQPhLfyX8QHeSkYKMPtkTg2am8G1IfqJn23leX6JgDRdCXwELIrkkUlAG9Duz ZQeQ== X-Gm-Message-State: ALoCoQnOhbJ+6CnqldqS/OEwKbZcolQGT4ZhvGk4Ct+ow2RvKw0+uCtRKEs65gAa5zHCYx/XrhIE X-Received: by 10.180.24.225 with SMTP id x1mr813924wif.2.1412081047900; Tue, 30 Sep 2014 05:44:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.169 with SMTP id c9ls32813laa.56.gmail; Tue, 30 Sep 2014 05:44:07 -0700 (PDT) X-Received: by 10.152.9.200 with SMTP id c8mr47889027lab.76.1412081047752; Tue, 30 Sep 2014 05:44:07 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com [209.85.215.42]) by mx.google.com with ESMTPS id ku1si22683968lbc.20.2014.09.30.05.44.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 30 Sep 2014 05:44:07 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by mail-la0-f42.google.com with SMTP id mk6so3816644lab.29 for ; Tue, 30 Sep 2014 05:44:07 -0700 (PDT) X-Received: by 10.152.88.16 with SMTP id bc16mr27192011lab.56.1412081046353; Tue, 30 Sep 2014 05:44:06 -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 of9csp338431lbb; Tue, 30 Sep 2014 05:44:06 -0700 (PDT) X-Received: by 10.112.24.104 with SMTP id t8mr44756919lbf.46.1412081045937; Tue, 30 Sep 2014 05:44:05 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com [209.85.215.41]) by mx.google.com with ESMTPS id t1si22587901lbv.79.2014.09.30.05.44.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 30 Sep 2014 05:44:05 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by mail-la0-f41.google.com with SMTP id pn19so4736242lab.0 for ; Tue, 30 Sep 2014 05:44:05 -0700 (PDT) X-Received: by 10.112.130.168 with SMTP id of8mr45234835lbb.5.1412081044481; Tue, 30 Sep 2014 05:44:04 -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 mn4sm6034586lbb.4.2014.09.30.05.44.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Sep 2014 05:44:03 -0700 (PDT) From: Ulf Hansson To: "Rafael J. Wysocki" , Len Brown , Pavel Machek , linux-pm@vger.kernel.org Cc: Geert Uytterhoeven , Kevin Hilman , Tomasz Figa , Philipp Zabel , Russell King , Mark Brown , Wolfram Sang , Greg Kroah-Hartman , Dmitry Torokhov , Jack Dai , Jinkun Hong , Ulf Hansson Subject: [PATCH 1/4] PM / Domains: Remove pm_genpd_dev_need_restore() API Date: Tue, 30 Sep 2014 14:43:50 +0200 Message-Id: <1412081033-8136-2-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1412081033-8136-1-git-send-email-ulf.hansson@linaro.org> References: <1412081033-8136-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.215.42 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) {