[PATCH 3/9] of: protect linux/of.h with CONFIG_OF

Grant Likely grant.likely at secretlab.ca
Mon Feb 15 01:06:28 EST 2010


On Sat, Feb 13, 2010 at 11:10 PM, Benjamin Herrenschmidt
<benh at kernel.crashing.org> wrote:
> On Sat, 2010-02-13 at 09:02 -0700, Grant Likely wrote:
>> From: Jeremy Kerr <jeremy.kerr at canonical.com>
>>
>> For platforms that have CONFIG_OF optional, we need to make the contents
>> of linux/of.h conditional on CONFIG_OF.
>>
>> Signed-off-by: Jeremy Kerr <jeremy.kerr at canonical.com>
>> Signed-off-by: Grant Likely <grant.likely at secretlab.ca>
>
> Acked-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
>
> For now...
>
> In the long run, maybe we want some of the iterators to be empty inlines
> returning NULL ?

Yes.  I'll add them as they are needed.

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.


More information about the Linuxppc-dev mailing list