git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bb5b20
)
of.h: Keep extern declaration of of_* variables when !CONFIG_OF
author
Hans de Goede
<hdegoede@redhat.com>
Fri, 14 Nov 2014 12:26:52 +0000
(13:26 +0100)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Fri, 14 Nov 2014 13:28:58 +0000
(15:28 +0200)
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 <hdegoede@redhat.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
include/linux/of.h
patch
|
blob
|
history
diff --cc
include/linux/of.h
Simple merge