From patchwork Thu Oct 20 06:44:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 78409 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp626435qge; Wed, 19 Oct 2016 23:43:26 -0700 (PDT) X-Received: by 10.99.157.135 with SMTP id i129mr15409297pgd.16.1476945806819; Wed, 19 Oct 2016 23:43:26 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hv8si24997761pad.137.2016.10.19.23.43.26; Wed, 19 Oct 2016 23:43:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756042AbcJTGnX (ORCPT + 27 others); Thu, 20 Oct 2016 02:43:23 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:63894 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752306AbcJTGnW (ORCPT ); Thu, 20 Oct 2016 02:43:22 -0400 Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id u9K6gTMg021503; Thu, 20 Oct 2016 15:42:30 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com u9K6gTMg021503 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1476945750; bh=/SAphzVN9H2kG800mhv5/PsfVRK6VAWWctCGeheCCn4=; h=From:To:Cc:Subject:Date:From; b=c49h4Cx4yY+sq7dNHDUfCFtuwNRopDe7gKVZ/sAAVVSRle0YlB/l3hd0UEPYKVFId m2CLL7Mk+cTHwfoCEJnUOPTeQhwf/2AviEiAvNkWGMXZn5b2QvdJi9mrccv13/TlCO hmjhDvwtHAsEACJvmJ6Y7BIzP9OEMZZCcwIKOcERWMAeOobo2X0WtuJsA9PxQ472zY GXlEF+FN/Vg9KH81LRHPr38Zh3z4Wc67/IgxJA5cQ7PxT45gNs7eIqXQOj1ZWrU9Ba HCqelpr+1OByqvHTzzP6zXpHbWIEQfb7FI4P3bh9TnUNjOS4qM/0PPFj9vFKOQY6w4 RS4NRj0tL0/pQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-pm@vger.kernel.org Cc: Masahiro Yamada , Stephen Boyd , linux-kernel@vger.kernel.org, Nishanth Menon , Len Brown , Greg Kroah-Hartman , "Rafael J. Wysocki" , Pavel Machek , Viresh Kumar Subject: [PATCH] PM / OPP: make _of_get_opp_desc_node a static function Date: Thu, 20 Oct 2016 15:44:53 +0900 Message-Id: <1476945893-26998-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit f47b72a15a96 ("PM / OPP: Move CONFIG_OF dependent code in a separate file"), this function is defined and called only in drivers/base/power/opp/of.c . Signed-off-by: Masahiro Yamada --- drivers/base/power/opp/of.c | 2 +- drivers/base/power/opp/opp.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) -- 1.9.1 diff --git a/drivers/base/power/opp/of.c b/drivers/base/power/opp/of.c index 5552211..6480137 100644 --- a/drivers/base/power/opp/of.c +++ b/drivers/base/power/opp/of.c @@ -198,7 +198,7 @@ void dev_pm_opp_of_remove_table(struct device *dev) EXPORT_SYMBOL_GPL(dev_pm_opp_of_remove_table); /* Returns opp descriptor node for a device, caller must do of_node_put() */ -struct device_node *_of_get_opp_desc_node(struct device *dev) +static struct device_node *_of_get_opp_desc_node(struct device *dev) { /* * TODO: Support for multiple OPP tables. diff --git a/drivers/base/power/opp/opp.h b/drivers/base/power/opp/opp.h index fabd5ca..96cd30a 100644 --- a/drivers/base/power/opp/opp.h +++ b/drivers/base/power/opp/opp.h @@ -190,7 +190,6 @@ struct opp_table { /* Routines internal to opp core */ struct opp_table *_find_opp_table(struct device *dev); struct opp_device *_add_opp_dev(const struct device *dev, struct opp_table *opp_table); -struct device_node *_of_get_opp_desc_node(struct device *dev); void _dev_pm_opp_remove_table(struct device *dev, bool remove_all); struct dev_pm_opp *_allocate_opp(struct device *dev, struct opp_table **opp_table); int _opp_add(struct device *dev, struct dev_pm_opp *new_opp, struct opp_table *opp_table);