From e9c425731a2f667edc64f1e18a9c1c265149e28e Mon Sep 17 00:00:00 2001 From: Jamie McCrae Date: Thu, 11 Aug 2022 17:11:22 +0100 Subject: [PATCH] [nrfconnect] Use device instead of device label for QSPI Moves from the obsolete device label to using the device directly Signed-off-by: Jamie McCrae --- src/platform/nrfconnect/OTAImageProcessorImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/nrfconnect/OTAImageProcessorImpl.cpp b/src/platform/nrfconnect/OTAImageProcessorImpl.cpp index b558906258e994..cfc4f7ec01517b 100644 --- a/src/platform/nrfconnect/OTAImageProcessorImpl.cpp +++ b/src/platform/nrfconnect/OTAImageProcessorImpl.cpp @@ -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;