[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <521F3151.1030704@gmail.com>
Date: Thu, 29 Aug 2013 13:32:33 +0200
From: Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>
To: Shawn Guo <shawn.guo@...aro.org>
CC: Mike Turquette <mturquette@...aro.org>,
Russell King <linux@....linux.org.uk>,
Arnd Bergmann <arnd@...db.de>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH RFC v2 08/16] ARM: mxs: remove custom .init_time hook
On 08/29/13 13:08, Shawn Guo wrote:
> On Tue, Aug 27, 2013 at 11:28:02PM +0200, Sebastian Hesselbarth wrote:
>> @@ -100,19 +101,17 @@ static enum imx23_clk clks_init_on[] __initdata = {
>> cpu, hbus, xbus, emi, uart,
>> };
>>
>> -int __init mx23_clocks_init(void)
>> +static void __init mx23_clocks_init(struct device_node *np)
>> {
>> - struct device_node *np;
>> u32 i;
>>
>> + clkctrl = of_iomap(np, 0);
>> + WARN_ON(!clkctrl);
>> +
>> np = of_find_compatible_node(NULL, NULL, "fsl,imx23-digctl");
>> digctrl = of_iomap(np, 0);
>> WARN_ON(!digctrl);
>>
>> - np = of_find_compatible_node(NULL, NULL, "fsl,imx23-clkctrl");
>> - clkctrl = of_iomap(np, 0);
>> - WARN_ON(!clkctrl);
>> -
>
> With the changes, 'np' becomes a pointer to digctl node instead of
> clkctrl as the original. This will cause problem for
> of_clk_add_provider(np, ...) later in this function.
>
> Same problem with mx28_clocks_init() changes.
Ok, will take care of it. I assume you are fine with having an extra
struct device_node pointer for the sake of readability instead of
reusing the same pointer.
Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists