of: define struct device in of_platform.h if !OF_DEVICE and !OF_ADDRESS
[cascardo/linux.git] / include / linux / of_platform.h
index b47d204..3863a4d 100644 (file)
@@ -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,