From b53b449847d79b2223814b6794dd0804beb098c2 Mon Sep 17 00:00:00 2001 From: buxiasen Date: Mon, 3 Jun 2024 15:36:14 +0800 Subject: [PATCH] pm: make compile dummy when PM not enabled. Signed-off-by: buxiasen --- include/nuttx/power/pm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/nuttx/power/pm.h b/include/nuttx/power/pm.h index 54d6f16ce5..8b9a3f2c3c 100644 --- a/include/nuttx/power/pm.h +++ b/include/nuttx/power/pm.h @@ -837,7 +837,9 @@ void pm_auto_updatestate(int domain); # define PM_WAKELOCK_DECLARE(v,n,d,s) # define PM_WAKELOCK_DECLARE_STATIC(v,n,d,s) # define pm_initialize() +# define pm_domain_register(domain,cb) (0) # define pm_register(cb) (0) +# define pm_domain_unregister(domain,cb) (0) # define pm_unregister(cb) (0) # define pm_activity(domain,prio) # define pm_stay(domain,state)