device: deprecate DEVICE_AND_API_INIT

Make DEVICE_AND_API_INIT deprecated in favor of DEVICE_DT_INST_DEFINE
or DEVICE_DEFINE.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2021-01-05 12:16:23 -06:00 committed by Kumar Gala
commit 86e98f0894
7 changed files with 15 additions and 17 deletions

View file

@ -67,7 +67,7 @@ void z_sys_init_run_level(int32_t _level);
* configured by the kernel during system initialization. Note that
* init entries will not be accessible from user mode. Also this macro should
* not be used directly, use relevant macro such as SYS_INIT() or
* DEVICE_AND_API_INIT() instead.
* DEVICE_DEFINE() instead.
*
* @param _entry_name Init entry name. It is the name this instance exposes to
* the system.