[PATCH 2/2] of/flattree: Make unflatten_device_tree() safe to call from any arch

Grant Likely grant.likely at secretlab.ca
Tue Feb 23 10:11:48 EST 2010


On Mon, Feb 22, 2010 at 3:51 PM, Stephen Rothwell <sfr at canb.auug.org.au> wrote:
> Hi Grant,
>
> On Mon, 22 Feb 2010 08:50:59 -0700 Grant Likely <grant.likely at secretlab.ca> wrote:
>>
>> - If CONFIG_OF_FLATTREE is not set, then make unflatten_device_tree()
>>   an empty #define.
>
> Any reason not to make this a static inline?
>
>> +#define unflatten_device_tree() do {} while(0)
>
> static inline void unflatten_device_tree(void) {}

No reason, just wasn't thinking of that.  I've changed this.

g.

>
> --
> Cheers,
> Stephen Rothwell                    sfr at canb.auug.org.au
> http://www.canb.auug.org.au/~sfr/
>



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


More information about the devicetree-discuss mailing list