提交 ab28698d 编写于 作者: J Jonas Gorski 提交者: Grant Likely

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: NJonas Gorski <jogo@openwrt.org>
Signed-off-by: NRob Herring <robherring2@gmail.com>
Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
上级 80c2022e
...@@ -100,6 +100,7 @@ extern int of_platform_populate(struct device_node *root, ...@@ -100,6 +100,7 @@ extern int of_platform_populate(struct device_node *root,
#if !defined(CONFIG_OF_ADDRESS) #if !defined(CONFIG_OF_ADDRESS)
struct of_dev_auxdata; struct of_dev_auxdata;
struct device;
static inline int of_platform_populate(struct device_node *root, static inline int of_platform_populate(struct device_node *root,
const struct of_device_id *matches, const struct of_device_id *matches,
const struct of_dev_auxdata *lookup, const struct of_dev_auxdata *lookup,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册