From: Hans de Goede Date: Fri, 14 Nov 2014 12:26:52 +0000 (+0100) Subject: of.h: Keep extern declaration of of_* variables when !CONFIG_OF X-Git-Tag: omap-for-v3.19/fixes-rc1~128^2^3~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d09dc6b74caaca83e32e67f2454406041d58fb0;p=pandora-kernel.git of.h: Keep extern declaration of of_* variables when !CONFIG_OF Keep the extern declaration of of_allnodes and friends, when building without of support, this way code using them can be written like this: if (IS_ENABLED(CONFIG_OF_PLATFORM) && of_chosen) { for_each_child_of_node(of_chosen, np) ... } And rely on the compiler optimizing it away, avoiding the need for #ifdef-ery. Signed-off-by: Hans de Goede Signed-off-by: Tomi Valkeinen --- Reading git-diff-tree failed