X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/35a7d633d3f16c1e0539af6ca5d8e7482926cd93..refs/heads/nov/revmap:/lunaix-os/includes/lunaix/device.h diff --git a/lunaix-os/includes/lunaix/device.h b/lunaix-os/includes/lunaix/device.h index f1ce4d0..7a469a1 100644 --- a/lunaix-os/includes/lunaix/device.h +++ b/lunaix-os/includes/lunaix/device.h @@ -353,11 +353,13 @@ device_create(struct device* dev, struct device* device_alloc(struct device_meta* parent, u32_t type, void* underlay); +#ifdef CONFIG_USE_DEVICETREE static inline void device_set_devtree_node(struct device* dev, devtree_link_t node) { dev->devtree_node = node; } +#endif static inline struct device* must_inline device_allocsys(struct device_meta* parent, void* underlay)