We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da97c85 commit 5879806Copy full SHA for 5879806
src/platform/nrfconnect/OTAImageProcessorImpl.cpp
@@ -213,8 +213,8 @@ void FlashHandler::DoAction(Action aAction)
213
{
214
#if CONFIG_PM_DEVICE && CONFIG_NORDIC_QSPI_NOR && !CONFIG_SOC_NRF52840 // nRF52 is optimized per default
215
// utilize the QSPI driver sleep power mode
216
- const auto * qspi_dev = device_get_binding(DT_LABEL(DT_INST(0, nordic_qspi_nor)));
217
- if (qspi_dev)
+ const auto * qspi_dev = DEVICE_DT_GET(DT_INST(0, nordic_qspi_nor));
+ if (device_is_ready(qspi_dev))
218
219
const auto requestedAction = Action::WAKE_UP == aAction ? PM_DEVICE_ACTION_RESUME : PM_DEVICE_ACTION_SUSPEND;
220
(void) pm_device_action_run(qspi_dev, requestedAction); // not much can be done in case of a failure
0 commit comments