From: Jon Hunter Subject: Re: [PATCH 1/5] PM / Domains: Export symbol for genpd_dev_pm_attach_by_name Date: Wed, 26 Sep 2018 16:02:07 +0100 Message-ID: References: <1537964858-30332-1-git-send-email-jonathanh@nvidia.com> <1537964858-30332-2-git-send-email-jonathanh@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Ulf Hansson Cc: Rob Herring , Mark Rutland , "Rafael J . Wysocki" , Kevin Hilman , Greg Kroah-Hartman , Mathias Nyman , Thierry Reding , DTML , Linux Kernel Mailing List , linux-tegra@vger.kernel.org List-Id: devicetree@vger.kernel.org On 26/09/18 15:09, Ulf Hansson wrote: > On 26 September 2018 at 14:27, Jon Hunter wrote: >> Export the symbol for genpd_dev_pm_attach_by_name() so that drivers >> built as modules can call this function. >> >> Signed-off-by: Jon Hunter >> --- >> drivers/base/power/domain.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c >> index 4b5714199490..b2bbe0d848d2 100644 >> --- a/drivers/base/power/domain.c >> +++ b/drivers/base/power/domain.c >> @@ -2397,6 +2397,7 @@ struct device *genpd_dev_pm_attach_by_name(struct device *dev, char *name) >> >> return genpd_dev_pm_attach_by_id(dev, index); >> } >> +EXPORT_SYMBOL_GPL(genpd_dev_pm_attach_by_name); > > Driver's shouldn't be calling this function, but instead use > dev_pm_domain_attach_by_name(). > > Is there any problem with that? No not at all. Yes that works, sorry it had been a while since I looked at this and managed to balls it up. OK, I will drop this and correct the API used by the driver. Cheers! Jon -- nvpublic