File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -414,6 +414,11 @@ static int spi_nrfx_init(const struct device *dev)
414
414
return 0 ;
415
415
}
416
416
417
+ static int spi_nrfx_deinit (const struct device * dev )
418
+ {
419
+ return 0 ;
420
+ }
421
+
417
422
/*
418
423
* Current factors requiring use of DT_NODELABEL:
419
424
*
@@ -460,8 +465,9 @@ static int spi_nrfx_init(const struct device *dev)
460
465
!(DT_GPIO_FLAGS(SPI(idx), wake_gpios) & GPIO_ACTIVE_LOW), \
461
466
"WAKE line must be configured as active high"); \
462
467
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), \
464
469
spi_nrfx_init, \
470
+ spi_nrfx_deinit, \
465
471
PM_DEVICE_DT_GET(SPI(idx)), \
466
472
&spi_##idx##_data, \
467
473
&spi_##idx##z_config, \
You can’t perform that action at this time.
0 commit comments