Skip to content

Commit b2a7dfe

Browse files
drivers: spi: nrfx_spi: implement deinit
Implement deinit op in spi_nrfx_spi.c Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
1 parent 3e51a6e commit b2a7dfe

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/spi/spi_nrfx_spi.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,11 @@ static int spi_nrfx_init(const struct device *dev)
414414
return 0;
415415
}
416416

417+
static int spi_nrfx_deinit(const struct device *dev)
418+
{
419+
return 0;
420+
}
421+
417422
/*
418423
* Current factors requiring use of DT_NODELABEL:
419424
*
@@ -460,8 +465,9 @@ static int spi_nrfx_init(const struct device *dev)
460465
!(DT_GPIO_FLAGS(SPI(idx), wake_gpios) & GPIO_ACTIVE_LOW), \
461466
"WAKE line must be configured as active high"); \
462467
PM_DEVICE_DT_DEFINE(SPI(idx), spi_nrfx_pm_action); \
463-
SPI_DEVICE_DT_DEFINE(SPI(idx), \
468+
SPI_DEVICE_DT_DEINIT_DEFINE(SPI(idx), \
464469
spi_nrfx_init, \
470+
spi_nrfx_deinit, \
465471
PM_DEVICE_DT_GET(SPI(idx)), \
466472
&spi_##idx##_data, \
467473
&spi_##idx##z_config, \

0 commit comments

Comments
 (0)