File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -186,3 +186,11 @@ extern void device_links_unbind_consumers(struct device *dev);
186
186
187
187
/* device pm support */
188
188
void device_pm_move_to_tail (struct device * dev );
189
+
190
+ #ifdef CONFIG_DEVTMPFS
191
+ int devtmpfs_create_node (struct device * dev );
192
+ int devtmpfs_delete_node (struct device * dev );
193
+ #else
194
+ static inline int devtmpfs_create_node (struct device * dev ) { return 0 ; }
195
+ static inline int devtmpfs_delete_node (struct device * dev ) { return 0 ; }
196
+ #endif
Original file line number Diff line number Diff line change @@ -1664,12 +1664,8 @@ extern void put_device(struct device *dev);
1664
1664
extern bool kill_device (struct device * dev );
1665
1665
1666
1666
#ifdef CONFIG_DEVTMPFS
1667
- extern int devtmpfs_create_node (struct device * dev );
1668
- extern int devtmpfs_delete_node (struct device * dev );
1669
1667
extern int devtmpfs_mount (void );
1670
1668
#else
1671
- static inline int devtmpfs_create_node (struct device * dev ) { return 0 ; }
1672
- static inline int devtmpfs_delete_node (struct device * dev ) { return 0 ; }
1673
1669
static inline int devtmpfs_mount (void ) { return 0 ; }
1674
1670
#endif
1675
1671
You can’t perform that action at this time.
0 commit comments