@@ -61,16 +61,18 @@ static inline struct platform_device *of_find_device_by_node(struct device_node
6161}
6262#endif
6363
64+ extern int of_platform_bus_probe (struct device_node * root ,
65+ const struct of_device_id * matches ,
66+ struct device * parent );
67+
68+ #ifdef CONFIG_OF_ADDRESS
6469/* Platform devices and busses creation */
6570extern struct platform_device * of_platform_device_create (struct device_node * np ,
6671 const char * bus_id ,
6772 struct device * parent );
6873
6974extern int of_platform_device_destroy (struct device * dev , void * data );
70- extern int of_platform_bus_probe (struct device_node * root ,
71- const struct of_device_id * matches ,
72- struct device * parent );
73- #ifdef CONFIG_OF_ADDRESS
75+
7476extern int of_platform_populate (struct device_node * root ,
7577 const struct of_device_id * matches ,
7678 const struct of_dev_auxdata * lookup ,
@@ -84,6 +86,18 @@ extern int devm_of_platform_populate(struct device *dev);
8486
8587extern void devm_of_platform_depopulate (struct device * dev );
8688#else
89+ /* Platform devices and busses creation */
90+ static inline struct platform_device * of_platform_device_create (struct device_node * np ,
91+ const char * bus_id ,
92+ struct device * parent )
93+ {
94+ return NULL ;
95+ }
96+ static inline int of_platform_device_destroy (struct device * dev , void * data )
97+ {
98+ return - ENODEV ;
99+ }
100+
87101static inline int of_platform_populate (struct device_node * root ,
88102 const struct of_device_id * matches ,
89103 const struct of_dev_auxdata * lookup ,
0 commit comments