File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -748,6 +748,12 @@ static int spi_nrfx_init(const struct device *dev)
748
748
#endif
749
749
return pm_device_driver_init (dev , spim_nrfx_pm_action );
750
750
}
751
+
752
+ static int spi_nrfx_deinit (const struct device * dev )
753
+ {
754
+ return 0 ;
755
+ }
756
+
751
757
/*
752
758
* We use NODELABEL here because the nrfx API requires us to call
753
759
* functions which are named according to SoC peripheral instance
@@ -851,8 +857,9 @@ static int spi_nrfx_init(const struct device *dev)
851
857
!(DT_GPIO_FLAGS(SPIM(idx), wake_gpios) & GPIO_ACTIVE_LOW),\
852
858
"WAKE line must be configured as active high"); \
853
859
PM_DEVICE_DT_DEFINE(SPIM(idx), spim_nrfx_pm_action); \
854
- SPI_DEVICE_DT_DEFINE (SPIM(idx), \
860
+ SPI_DEVICE_DT_DEINIT_DEFINE (SPIM(idx), \
855
861
spi_nrfx_init, \
862
+ spi_nrfx_deinit, \
856
863
PM_DEVICE_DT_GET(SPIM(idx)), \
857
864
&spi_##idx##_data, \
858
865
&spi_##idx##z_config, \
You can’t perform that action at this time.
0 commit comments