diff --git a/drivers/flash/flash_stm32h7x.c b/drivers/flash/flash_stm32h7x.c index 89f8daf1f29220..5999865fbc62e1 100644 --- a/drivers/flash/flash_stm32h7x.c +++ b/drivers/flash/flash_stm32h7x.c @@ -767,7 +767,7 @@ static int stm32h7_flash_init(const struct device *dev) } #endif - return flash_stm32h7_write_protection(dev, false); + return 0; } DEVICE_DT_INST_DEFINE(0, stm32h7_flash_init, NULL, &flash_data, NULL, POST_KERNEL,