summaryrefslogtreecommitdiff
path: root/zephyr/drivers/cros_system/cros_system_npcx.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-02-18 15:06:36 -0700
committerCommit Bot <commit-bot@chromium.org>2021-02-19 03:59:54 +0000
commit80cacc3d251ba738e2c8e6a84305ac06395898ef (patch)
treeba6b4efe7bb753ed68ca2e5007d8c4a865fa8f80 /zephyr/drivers/cros_system/cros_system_npcx.c
parent98371feb0fa808330c2b5b3977b962268351b19e (diff)
downloadchrome-ec-80cacc3d251ba738e2c8e6a84305ac06395898ef.tar.gz
zephyr: Drop use of DEVICE_AND_API_INIT() in drivers/cros*
This macro is deprecated in v2.5. Replace it with DEVICE_DEFINE(). BUG=b:180409973 BRANCH=none TEST=build for volteer and see the warnings are gone Change-Id: Ie790e89b2f9933db22776f536948541ee288716e Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2705446 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/drivers/cros_system/cros_system_npcx.c')
-rw-r--r--zephyr/drivers/cros_system/cros_system_npcx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/zephyr/drivers/cros_system/cros_system_npcx.c b/zephyr/drivers/cros_system/cros_system_npcx.c
index 619acaddb5..87db955e4a 100644
--- a/zephyr/drivers/cros_system/cros_system_npcx.c
+++ b/zephyr/drivers/cros_system/cros_system_npcx.c
@@ -73,6 +73,6 @@ static const struct cros_system_driver_api cros_system_driver_npcx_api = {
* The priority of cros_system_npcx_init() should be lower than watchdog init
* for reset cause check.
*/
-DEVICE_AND_API_INIT(cros_system_npcx_0, "CROS_SYSTEM", cros_system_npcx_init,
- &cros_system_npcx_dev_data, &cros_system_dev_cfg,
- PRE_KERNEL_1, 30, &cros_system_driver_npcx_api);
+DEVICE_DEFINE(cros_system_npcx_0, "CROS_SYSTEM", cros_system_npcx_init, NULL,
+ &cros_system_npcx_dev_data, &cros_system_dev_cfg, PRE_KERNEL_1,
+ 30, &cros_system_driver_npcx_api);