From 3656c1b14c1eccc95386f8bb94661cc5ce25c020 Mon Sep 17 00:00:00 2001 From: "Mike J. Chen" Date: Thu, 29 Feb 2024 17:46:56 -0800 Subject: [PATCH] spi_nor: remove unneeded enter_dpd() at end of spi_nor_configure() This block of code was in the original commit that added CONFIG_SPI_NOR_IDLE_IN_DPD but later modifications added acquire_device() and release_device() calls earlier in spi_nor_configure() and the release_device() function will have already done the enter_dpd(). Signed-off-by: Mike J. Chen --- drivers/flash/spi_nor.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/flash/spi_nor.c b/drivers/flash/spi_nor.c index ccf492f0255..f0b4df33590 100644 --- a/drivers/flash/spi_nor.c +++ b/drivers/flash/spi_nor.c @@ -1414,11 +1414,6 @@ static int spi_nor_configure(const struct device *dev) } #endif /* ANY_INST_HAS_MXICY_MX25R_POWER_MODE */ - if (IS_ENABLED(CONFIG_SPI_NOR_IDLE_IN_DPD) - && (enter_dpd(dev) != 0)) { - return -ENODEV; - } - return 0; }