Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S970576AbdDTPZp (ORCPT ); Thu, 20 Apr 2017 11:25:45 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:26943 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S970449AbdDTPZk (ORCPT ); Thu, 20 Apr 2017 11:25:40 -0400 Subject: Re: [PATCH 2/2] clk: ti: fix building without legacy omap3 To: Arnd Bergmann , Michael Turquette , Stephen Boyd References: <20170419174507.4055014-1-arnd@arndb.de> <20170419174507.4055014-2-arnd@arndb.de> CC: Tony Lindgren , , , From: Tero Kristo Message-ID: <88ae109e-4442-df96-be4c-2aabd6246e37@ti.com> Date: Thu, 20 Apr 2017 18:25:23 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <20170419174507.4055014-2-arnd@arndb.de> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1821 Lines: 54 On 19/04/17 20:44, Arnd Bergmann wrote: > When CONFIG_ATAGS or CONFIG_OMAP3 is disabled, we get a build error: > > In file included from include/linux/clk-provider.h:15:0, > from drivers/clk/ti/clk.c:19: > drivers/clk/ti/clk.c: In function 'ti_clk_add_aliases': > drivers/clk/ti/clk.c:438:29: error: 'simple_clk_match_table' undeclared (first use in this function); did you mean 'simple_attr_write'? > > Moving the match table down fixes it. > > Fixes: c17435c56bb1 ("clk: ti: add API for creating aliases automatically for simple clock types") > Signed-off-by: Arnd Bergmann This one is clear... I think I should start running the single SoC build testing script again before posting stuff, this is an area where I seem to fail repeatedly... sorry about that. Acked-by: Tero Kristo > --- > drivers/clk/ti/clk.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/clk/ti/clk.c b/drivers/clk/ti/clk.c > index ddbad7e8d7c9..e5a1c8297a1d 100644 > --- a/drivers/clk/ti/clk.c > +++ b/drivers/clk/ti/clk.c > @@ -371,12 +371,6 @@ struct clk __init *ti_clk_register_clk(struct ti_clk *setup) > return clk; > } > > -static const struct of_device_id simple_clk_match_table[] __initconst = { > - { .compatible = "fixed-clock" }, > - { .compatible = "fixed-factor-clock" }, > - { } > -}; > - > int __init ti_clk_register_legacy_clks(struct ti_clk_alias *clks) > { > struct clk *clk; > @@ -425,6 +419,12 @@ int __init ti_clk_register_legacy_clks(struct ti_clk_alias *clks) > } > #endif > > +static const struct of_device_id simple_clk_match_table[] __initconst = { > + { .compatible = "fixed-clock" }, > + { .compatible = "fixed-factor-clock" }, > + { } > +}; > + > /** > * ti_clk_add_aliases - setup clock aliases > * >