devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] of: define struct device in of_platform.h if !OF_DEVICE and !OF_ADDRESS
@ 2012-12-15 13:27 Jonas Gorski
       [not found] ` <1355578062-21876-1-git-send-email-jogo-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Jonas Gorski @ 2012-12-15 13:27 UTC (permalink / raw)
  To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ; +Cc: Rob Herring

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-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
---
 include/linux/of_platform.h |    1 +
 1 file changed, 1 insertion(+)

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,
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-12-19 16:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-15 13:27 [PATCH] of: define struct device in of_platform.h if !OF_DEVICE and !OF_ADDRESS Jonas Gorski
     [not found] ` <1355578062-21876-1-git-send-email-jogo-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
2012-12-19 15:12   ` Rob Herring
     [not found]     ` <50D1D97B.1020309-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-12-19 15:37       ` Jonas Gorski
2012-12-19 16:20       ` Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).