Skip to content
Commit 0782f9c4 authored by Marcin Niestroj's avatar Marcin Niestroj Committed by Anas Nashif
Browse files

power: device: provide device_pm_state_str() with CONFIG_PM=n



So far device_pm_state_str() was built only when CONFIG_PM=y (former
CONFIG_SYSTEM_POWER_MANAGEMENT=y). 'device list' shell
command (CONFIG_DEVICE_SHELL=y) is using that function when
CONFIG_PM_DEVICE=y. This resulted in build failures when CONFIG_PM=n, as
linker could not find its implementation.

Build device_pm_state_str() function regardless of CONFIG_PM value, so
device shell module builds successfully in every case.

Signed-off-by: default avatarMarcin Niestroj <m.niestroj@grinn-global.com>
parent ae4e4b78
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment