From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.codeaurora.org ([198.145.29.96]:56348 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753212AbdHQVGc (ORCPT ); Thu, 17 Aug 2017 17:06:32 -0400 Date: Thu, 17 Aug 2017 14:06:30 -0700 From: Stephen Boyd To: Shawn Guo Cc: Felipe Balbi , linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-clk@vger.kernel.org, Shawn Guo Subject: Re: [PATCH] usb: dwc3: of-simple: remove include of clk-provider.h Message-ID: <20170817210630.GH2146@codeaurora.org> References: <1502634071-2266-1-git-send-email-shawnguo@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1502634071-2266-1-git-send-email-shawnguo@kernel.org> Sender: linux-clk-owner@vger.kernel.org List-ID: On 08/13, Shawn Guo wrote: > From: Shawn Guo > > The header clk-provider.h is there for clock drivers (providers) to > include, not client drivers (consumers). That said, > of_clk_get_parent_count() is a helper function for clock providers, not > a clk API for consumers. > > Let's replace of_clk_get_parent_count() with of_count_phandle_with_args() > call, so that we can remove the include of clk-provider.h. > > Signed-off-by: Shawn Guo > --- Acked-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project From mboxrd@z Thu Jan 1 00:00:00 1970 From: sboyd@codeaurora.org (Stephen Boyd) Date: Thu, 17 Aug 2017 14:06:30 -0700 Subject: [PATCH] usb: dwc3: of-simple: remove include of clk-provider.h In-Reply-To: <1502634071-2266-1-git-send-email-shawnguo@kernel.org> References: <1502634071-2266-1-git-send-email-shawnguo@kernel.org> Message-ID: <20170817210630.GH2146@codeaurora.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 08/13, Shawn Guo wrote: > From: Shawn Guo > > The header clk-provider.h is there for clock drivers (providers) to > include, not client drivers (consumers). That said, > of_clk_get_parent_count() is a helper function for clock providers, not > a clk API for consumers. > > Let's replace of_clk_get_parent_count() with of_count_phandle_with_args() > call, so that we can remove the include of clk-provider.h. > > Signed-off-by: Shawn Guo > --- Acked-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project