Skip to content
Commit 71a0f395 authored by Jordan Yates's avatar Jordan Yates Committed by Benjamin Cabé
Browse files

pm: device: correct state in `pm_device_driver_init`



Set the value of `pm->state` as we move through the various stages of
`pm_device_driver_init`. This ensures hat if any of the code inside the
actions callbacks runs `pm_device_state_get` they get the correct state,
instead of always getting `PM_DEVICE_STATE_ACTIVE` (0, the value at
reset).

Signed-off-by: default avatarJordan Yates <jordan@embeint.com>
parent 5721815c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment