@@ -100,20 +100,15 @@ typedef int16_t device_handle_t;
100100 *
101101 * @brief Run an initialization function at boot at specified priority.
102102 *
103- * @details This macro allows you to use the device infrastructure to
104- * run a function at boot time. It is equivalent to
105- * <tt>DEVICE_DEFINE(dev_name, drv_name, init_fn, NULL, NULL, NULL,
106- * level, prio, NULL)</tt>, where @p dev_name is derived from @p init_fn.
103+ * @deprecated Use SYS_INIT() instead.
107104 *
108- * @param drv_name A string name for the pseudo-device.
105+ * @param drv_name A string name for the pseudo-device (unused) .
109106 * @param init_fn Pointer to the function which should run at boot time.
110107 * @param level Initialization level to run the function in.
111108 * @param prio Function's priority within its initialization level.
112- * @see DEVICE_DEFINE()
113109 */
114110#define SYS_DEVICE_DEFINE (drv_name , init_fn , level , prio ) \
115- DEVICE_DEFINE(Z_SYS_NAME(init_fn), drv_name, init_fn, NULL, \
116- NULL, NULL, level, prio, NULL)
111+ __DEPRECATED_MACRO SYS_INIT(init_fn, level, prio)
117112
118113/* Node paths can exceed the maximum size supported by device_get_binding() in user mode,
119114 * so synthesize a unique dev_name from the devicetree node.
0 commit comments