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

Stephen Rothwell sfr at canb.auug.org.au
Tue Feb 23 09:51:18 EST 2010


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) {}

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/devicetree-discuss/attachments/20100223/8ac01e34/attachment.pgp>


More information about the devicetree-discuss mailing list