device: remove deprecated DEVICE_INIT/DEVICE_AND_API_INIT macros

The macros have been deprecated for 2 releases so remove the code
associated with them.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2021-06-10 08:01:58 -05:00 committed by Kumar Gala
parent 88cf73d58f
commit e021ac7673
2 changed files with 1 additions and 25 deletions

View File

@ -33,6 +33,7 @@ Changes in this release
Removed APIs in this release
* Removed support for the deprecated ``DEVICE_INIT`` and ``DEVICE_AND_API_INIT`` macros.
============================

View File

@ -94,31 +94,6 @@ typedef int16_t device_handle_t;
pm_control_fn, \
NULL, NULL, level, prio, NULL)
/**
* @def DEVICE_INIT
*
* @brief Invoke DEVICE_DEFINE() with no power management support (@p
* pm_control_fn) and no API (@p api_ptr).
*/
#define DEVICE_INIT(dev_name, drv_name, init_fn, \
data_ptr, cfg_ptr, level, prio) \
__DEPRECATED_MACRO \
DEVICE_DEFINE(dev_name, drv_name, init_fn, NULL, \
data_ptr, cfg_ptr, level, prio, NULL)
/**
* @def DEVICE_AND_API_INIT
*
* @brief Invoke DEVICE_DEFINE() with no power management support (@p
* pm_control_fn).
*/
#define DEVICE_AND_API_INIT(dev_name, drv_name, init_fn, \
data_ptr, cfg_ptr, level, prio, api_ptr) \
__DEPRECATED_MACRO \
DEVICE_DEFINE(dev_name, drv_name, init_fn, \
NULL, \
data_ptr, cfg_ptr, level, prio, api_ptr)
/**
* @def DEVICE_DEFINE
*