diff options
author | Simon Glass <sjg@chromium.org> | 2021-02-18 15:06:36 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-19 03:59:54 +0000 |
commit | 80cacc3d251ba738e2c8e6a84305ac06395898ef (patch) | |
tree | ba6b4efe7bb753ed68ca2e5007d8c4a865fa8f80 /zephyr/drivers/cros_kb_raw/cros_kb_raw_npcx.c | |
parent | 98371feb0fa808330c2b5b3977b962268351b19e (diff) | |
download | chrome-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_kb_raw/cros_kb_raw_npcx.c')
-rw-r--r-- | zephyr/drivers/cros_kb_raw/cros_kb_raw_npcx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zephyr/drivers/cros_kb_raw/cros_kb_raw_npcx.c b/zephyr/drivers/cros_kb_raw/cros_kb_raw_npcx.c index 91e8c849df..258fb58e5d 100644 --- a/zephyr/drivers/cros_kb_raw/cros_kb_raw_npcx.c +++ b/zephyr/drivers/cros_kb_raw/cros_kb_raw_npcx.c @@ -230,10 +230,10 @@ static const struct cros_kb_raw_npcx_config cros_kb_raw_cfg = { .wui_maps = NPCX_DT_WUI_ITEMS_LIST(0), }; -DEVICE_AND_API_INIT(cros_kb_raw_npcx_0, DT_INST_LABEL(0), kb_raw_npcx_init, - NULL, &cros_kb_raw_cfg, PRE_KERNEL_1, - CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, - &cros_kb_raw_npcx_driver_api); +DEVICE_DEFINE(cros_kb_raw_npcx_0, DT_INST_LABEL(0), kb_raw_npcx_init, NULL, + NULL, &cros_kb_raw_cfg, PRE_KERNEL_1, + CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, + &cros_kb_raw_npcx_driver_api); /* KBS register structure check */ NPCX_REG_SIZE_CHECK(kbs_reg, 0x010); |