pm: policy: Fix logging module name

LOG_MODULE_DECLARE was referring to power name which was renamed
to pm by faa06ac. This results in compilation failure.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2021-11-20 11:17:55 +01:00 committed by Anas Nashif
parent b9ae272ade
commit a10d2b418c
2 changed files with 2 additions and 3 deletions

View file

@ -10,7 +10,7 @@
#include <pm/policy.h>
#include <logging/log.h>
LOG_MODULE_DECLARE(power, CONFIG_PM_LOG_LEVEL);
LOG_MODULE_DECLARE(pm, CONFIG_PM_LOG_LEVEL);
#define STATE_ACTIVE \
(struct pm_state_info){PM_STATE_ACTIVE, 0, 0}

View file

@ -11,9 +11,8 @@
#include <pm/policy.h>
#include <sys/check.h>
#define LOG_LEVEL CONFIG_PM_LOG_LEVEL /* From power module Kconfig */
#include <logging/log.h>
LOG_MODULE_DECLARE(power);
LOG_MODULE_DECLARE(pm, CONFIG_PM_LOG_LEVEL);
#if DT_NODE_EXISTS(DT_PATH(cpus))