Skip to content

Commit ab28698

Browse files
KanjiMonsterglikely
authored andcommitted
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>
1 parent 80c2022 commit ab28698

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/of_platform.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ extern int of_platform_populate(struct device_node *root,
100100

101101
#if !defined(CONFIG_OF_ADDRESS)
102102
struct of_dev_auxdata;
103+
struct device;
103104
static inline int of_platform_populate(struct device_node *root,
104105
const struct of_device_id *matches,
105106
const struct of_dev_auxdata *lookup,

0 commit comments

Comments
 (0)