Skip to content

Commit 34a6b89

Browse files
[nrf fromlist] drivers: flash: nrf_mramc: align to errno codes in nrfx
NRFX drivers now return errno codes, aligned driver. Upstream PR #: 97997 Signed-off-by: Michał Stasiak <[email protected]>
1 parent 5b82df5 commit 34a6b89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/flash/soc_flash_nrf_mramc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ static int mramc_sys_init(const struct device *dev)
186186
ARG_UNUSED(dev);
187187

188188
nrfx_mramc_config_t config = NRFX_MRAMC_DEFAULT_CONFIG();
189-
nrfx_err_t err = nrfx_mramc_init(&config, NULL);
189+
int ret = nrfx_mramc_init(&config, NULL);
190190

191-
if (err != NRFX_SUCCESS) {
191+
if (ret != 0) {
192192
LOG_ERR("Failed to initialize MRAMC: %d", err);
193-
return -EIO;
193+
return ret;
194194
}
195195
LOG_DBG("MRAMC initialized successfully");
196196
return 0;

0 commit comments

Comments
 (0)