drivers: ieee802154: Convert DEVICE_AND_API_INIT to DEVICE_DEFINE

Convert drivers to DEVICE_DEFINE instead of DEVICE_AND_API_INIT
so we can deprecate DEVICE_AND_API_INIT in the future.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-12-18 08:47:49 -06:00 committed by Anas Nashif
commit e2268e1ac4
5 changed files with 21 additions and 19 deletions

View file

@ -765,9 +765,10 @@ NET_DEVICE_INIT(ieee802154_cc13xx_cc26xx_subg,
&ieee802154_cc13xx_cc26xx_subg_radio_api, IEEE802154_L2,
NET_L2_GET_CTX_TYPE(IEEE802154_L2), IEEE802154_MTU);
#else
DEVICE_AND_API_INIT(ieee802154_cc13xx_cc26xx_subg,
DEVICE_DEFINE(ieee802154_cc13xx_cc26xx_subg,
CONFIG_IEEE802154_CC13XX_CC26XX_SUB_GHZ_DRV_NAME,
ieee802154_cc13xx_cc26xx_subg_init,
device_pm_control_nop,
&ieee802154_cc13xx_cc26xx_subg_data, NULL, POST_KERNEL,
CONFIG_IEEE802154_CC13XX_CC26XX_SUB_GHZ_INIT_PRIO,
&ieee802154_cc13xx_cc26xx_subg_radio_api);