Skip to content

Commit

Permalink
[nrfconnect] Use device instead of device label for QSPI
Browse files Browse the repository at this point in the history
Moves from the obsolete device label to using the device directly

Signed-off-by: Jamie McCrae <[email protected]>
  • Loading branch information
nordicjm committed Aug 12, 2022
1 parent 238a18d commit e9c4257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/nrfconnect/OTAImageProcessorImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ void FlashHandler::DoAction(Action aAction)
{
#if CONFIG_PM_DEVICE && CONFIG_NORDIC_QSPI_NOR && !CONFIG_SOC_NRF52840 // nRF52 is optimized per default
// utilize the QSPI driver sleep power mode
const auto * qspi_dev = device_get_binding(DT_LABEL(DT_INST(0, nordic_qspi_nor)));
const auto * qspi_dev = DEVICE_DT_GET(DT_INST(0, nordic_qspi_nor));
if (qspi_dev)
{
const auto requestedAction = Action::WAKE_UP == aAction ? PM_DEVICE_ACTION_RESUME : PM_DEVICE_ACTION_SUSPEND;
Expand Down

0 comments on commit e9c4257

Please sign in to comment.