summaryrefslogtreecommitdiff
path: root/zephyr/drivers
diff options
context:
space:
mode:
authorYuval Peress <peress@chromium.org>2021-06-22 12:57:12 -0600
committerCommit Bot <commit-bot@chromium.org>2021-06-22 20:52:48 +0000
commitf1bd9c716b80f0fd86ff15925b2d830b5c0967e2 (patch)
tree25b30eefd06115021c86f5c1d9ce7c373b3247d0 /zephyr/drivers
parenta312deca2a2e9ce941d089d24136061af2569c8d (diff)
downloadchrome-ec-f1bd9c716b80f0fd86ff15925b2d830b5c0967e2.tar.gz
zephyr: remove deprecated macro for power management nop
Zephyr v2.6 deprecated the macro device_pm_control_nop, remove the use in our repo to avoid warnings. BRANCH=none BUG=b:190731415 TEST=zmake configure -b zephyr/projects/trogdor/lazor Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: I515de7e62e3496ca9ddb55b05ca195fa91e35cc1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2980434 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'zephyr/drivers')
-rw-r--r--zephyr/drivers/cros_rtc/cros_rtc_npcx.c2
-rw-r--r--zephyr/drivers/cros_shi/cros_shi_npcx.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/zephyr/drivers/cros_rtc/cros_rtc_npcx.c b/zephyr/drivers/cros_rtc/cros_rtc_npcx.c
index ed08386d81..0ecbe5f47c 100644
--- a/zephyr/drivers/cros_rtc/cros_rtc_npcx.c
+++ b/zephyr/drivers/cros_rtc/cros_rtc_npcx.c
@@ -235,7 +235,7 @@ static const struct cros_rtc_npcx_config cros_rtc_npcx_cfg_0 = {
static struct cros_rtc_npcx_data cros_rtc_npcx_data_0;
-DEVICE_DT_INST_DEFINE(0, cros_rtc_npcx_init, device_pm_control_nop,
+DEVICE_DT_INST_DEFINE(0, cros_rtc_npcx_init, /* pm_control_fn= */ NULL,
&cros_rtc_npcx_data_0, &cros_rtc_npcx_cfg_0, POST_KERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&cros_rtc_npcx_driver_api);
diff --git a/zephyr/drivers/cros_shi/cros_shi_npcx.c b/zephyr/drivers/cros_shi/cros_shi_npcx.c
index 40e6341c93..df5d9dfda1 100644
--- a/zephyr/drivers/cros_shi/cros_shi_npcx.c
+++ b/zephyr/drivers/cros_shi/cros_shi_npcx.c
@@ -885,8 +885,8 @@ static const struct cros_shi_driver_api cros_shi_npcx_driver_api = {
};
static struct cros_shi_npcx_data cros_shi_data;
-DEVICE_DT_INST_DEFINE(0, shi_npcx_init, device_pm_control_nop, &cros_shi_data,
- &cros_shi_cfg, PRE_KERNEL_1,
+DEVICE_DT_INST_DEFINE(0, shi_npcx_init, /* pm_control_fn= */ NULL,
+ &cros_shi_data, &cros_shi_cfg, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
&cros_shi_npcx_driver_api);