Skip to content

Commit

Permalink
of: define struct device in of_platform.h if !OF_DEVICE and !OF_ADDRESS
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonas Gorski authored and Grant Likely committed Dec 19, 2012
1 parent 80c2022 commit ab28698
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/of_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ab28698

Please sign in to comment.