Skip to content

Commit 3656c1b

Browse files
mjchen0nashif
authored andcommitted
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 <[email protected]>
1 parent 0687014 commit 3656c1b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/flash/spi_nor.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,11 +1414,6 @@ static int spi_nor_configure(const struct device *dev)
14141414
}
14151415
#endif /* ANY_INST_HAS_MXICY_MX25R_POWER_MODE */
14161416

1417-
if (IS_ENABLED(CONFIG_SPI_NOR_IDLE_IN_DPD)
1418-
&& (enter_dpd(dev) != 0)) {
1419-
return -ENODEV;
1420-
}
1421-
14221417
return 0;
14231418
}
14241419

0 commit comments

Comments
 (0)