summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2012-12-19 09:10:09 -0600
committerGrant Likely <grant.likely@secretlab.ca>2012-12-19 16:15:17 +0000
commitab28698d33af05abab0bcf8021eafe38f7434f24 (patch)
treea8f357f0352f4dc7408bfc16d88664783d2b5f4d
parent80c2022e5645a1a789531d13010292c5c18bf1db (diff)
downloadtalos-obmc-linux-ab28698d33af05abab0bcf8021eafe38f7434f24.tar.gz
talos-obmc-linux-ab28698d33af05abab0bcf8021eafe38f7434f24.zip
of: define struct device in of_platform.h if !OF_DEVICE and !OF_ADDRESS
Fixes the following warning: include/linux/of_platform.h:106:13: warning: 'struct device' declared inside parameter list [enabled by default] include/linux/of_platform.h:106:13: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] Signed-off-by: Jonas Gorski <jogo@openwrt.org> Signed-off-by: Rob Herring <robherring2@gmail.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
-rw-r--r--include/linux/of_platform.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h
index b47d2040c9f2..3863a4dbdf18 100644
--- a/include/linux/of_platform.h
+++ b/include/linux/of_platform.h
@@ -100,6 +100,7 @@ extern int of_platform_populate(struct device_node *root,
#if !defined(CONFIG_OF_ADDRESS)
struct of_dev_auxdata;
+struct device;
static inline int of_platform_populate(struct device_node *root,
const struct of_device_id *matches,
const struct of_dev_auxdata *lookup,
OpenPOWER on IntegriCloud