diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-11-14 15:26:52 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-11-14 16:28:58 +0300 |
commit | 6d09dc6b74caaca83e32e67f2454406041d58fb0 (patch) | |
tree | a96dc8eb8653bf0636807988878d5fc396227c21 /drivers/video/fbdev | |
parent | 9bb5b20f5d983e98d9a1cc7b7af5877b0f1c791b (diff) | |
download | linux-6d09dc6b74caaca83e32e67f2454406041d58fb0.tar.xz |
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 <hdegoede@redhat.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/fbdev')
0 files changed, 0 insertions, 0 deletions