projects/linux·commit ab28698d

of: define struct device in of_platform.h if !OF_DEVICE and !OF_ADDRESS

ab28698d · Jonas Gorski <[email protected]> · 2012-12-19 09:10:09 -06:00

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 <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
Signed-off-by: Grant Likely <[email protected]>
Commit
ab28698d33af05abab0bcf8021eafe38f7434f24
Parents
80c2022e

Changes

1 files changed · +1 −0

FileStatusAddDelContent
include/linux/of_platform.hmodified+1−0View file

include/linux/of_platform.h

View file
diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h
index b47d204..3863a4d 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,