[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <AANLkTinf6+FN90tyLd6f1guvppt5s5PQL3ZkcecCCX+E@mail.gmail.com>
Date: Tue, 25 Jan 2011 21:19:36 -0700
From: Grant Likely <grant.likely@...retlab.ca>
To: Greg KH <gregkh@...e.de>
Cc: devicetree-discuss@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] driver-core: remove conditionals around devicetree pointers
On Tue, Jan 25, 2011 at 8:17 PM, Greg KH <gregkh@...e.de> wrote:
> On Tue, Jan 25, 2011 at 07:02:02PM -0700, Grant Likely wrote:
>> Having conditional around the of_match_table and the of_node pointers
>> turns out to make driver code use ugly #ifdef blocks. Drop the
>> conditionals and remove the #ifdef blocks from the affected drivers.
>>
>> Also tidy up minor whitespace issues within the same hunks.
>>
>> Signed-off-by: Grant Likely <grant.likely@...retlab.ca>
>> ---
>>
>> I've held off doing this since I didn't want to needlessly increase
>> the size of struct device and struct device_driver for users who don't
>> use CONFIG_OF. However, its quibbling about a tiny amount of memory,
>> and #ifdef'ing it out this way is ugly for driver code.
>>
>> Alternately, if I should be concerned about the extra memory, I could
>> define some macros/inlines similar to how CONFIG_NUMA is handled.
>
> No objection from me, I was wondering when you would get around to doing
> this :)
>
> If you want me to take this in my tree, I'd be glad to, otherwise feel
> free to send it through yours, and add a:
> Acked-by: Greg Kroah-Hartman <gregkh@...e.de>
> to it.
Thanks. I'll take it via my tree.
g.
>
> Nice job,
>
> greg k-h
>
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
--
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