]> git.karo-electronics.de Git - linux-beck.git/commit
of: remove #ifdef from linux/of_platform.h
authorArnd Bergmann <arnd@arndb.de>
Fri, 31 May 2013 22:22:52 +0000 (00:22 +0200)
committerGrant Likely <grant.likely@linaro.org>
Wed, 12 Jun 2013 09:23:17 +0000 (10:23 +0100)
commit8a46f4f7f95f2bece108998a2e1b87b58f99d590
tree772e3515955983e0284be67dec9f88e7860148a4
parent317ddd256b9c24b0d78fa8018f80f1e495481a10
of: remove #ifdef from linux/of_platform.h

A lot of code uses the functions from of_platform.h when built for
devicetree-enabled platforms but can also be built without them.
In order to avoid using #ifdef everywhere in drivers, this
makes all the function declarations visible, which means we
can use "if (IS_ENABLED(CONFIG_OF))" in driver code and get build
coverage over the code but let the compiler drop the reference
in the object code.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
include/linux/of_platform.h