From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754619AbbBFAgX (ORCPT ); Thu, 5 Feb 2015 19:36:23 -0500 Received: from smtp.codeaurora.org ([198.145.11.231]:50379 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751093AbbBFAgW (ORCPT ); Thu, 5 Feb 2015 19:36:22 -0500 Message-ID: <54D40C84.1080009@codeaurora.org> Date: Thu, 05 Feb 2015 16:36:20 -0800 From: Stephen Boyd User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Mike Turquette CC: linux-kernel@vger.kernel.org, Sylwester Nawrocki , Alban Browaeys , Tomeu Vizoso Subject: Re: [PATCH 1/3] clkdev: Always allocate a struct clk and call __clk_get() w/ CCF References: <1423181968-32149-1-git-send-email-sboyd@codeaurora.org> <1423181968-32149-2-git-send-email-sboyd@codeaurora.org> In-Reply-To: <1423181968-32149-2-git-send-email-sboyd@codeaurora.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/05/15 16:19, Stephen Boyd wrote: > > diff --git a/include/linux/clkdev.h b/include/linux/clkdev.h > index 94bad77eeb4a..9551f84273b3 100644 > --- a/include/linux/clkdev.h > +++ b/include/linux/clkdev.h > @@ -21,7 +21,10 @@ struct clk_lookup { > struct list_head node; > const char *dev_id; > const char *con_id; > - struct clk *clk; > + union { > + struct clk *clk; > + struct clk_hw *hw; > + }; Oh right this won't work when CONFIG_COMMON_CLK=y and hw isn't assigned by everyone... We'll have to scrap this part until later. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project