Skip to content
Commit 1c0302d2 authored by Dawid Niedzwiecki's avatar Dawid Niedzwiecki Committed by Henrik Brix Andersen
Browse files

drivers: gpio: stm32: fix init power state



Set suspended as initial power state, only when the
CONFIG_PM_DEVICE_RUNTIME config is enabled.

The initial state was incorrect, when CONFIG_PM_DEVICE=y and
CONFIG_PM_DEVICE_RUNTIME=n. In that case, the power state was SUSPENDED,
but the device was actually enabled.

Signed-off-by: default avatarDawid Niedzwiecki <dawidn@google.com>
parent ade49f08
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment