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 @@ -759,6 +759,12 @@ static int spi_nrfx_init(const struct device *dev)
759
759
#endif
760
760
return pm_device_driver_init (dev , spim_nrfx_pm_action );
761
761
}
762
+
763
+ static int spi_nrfx_deinit (const struct device * dev )
764
+ {
765
+ return 0 ;
766
+ }
767
+
762
768
/*
763
769
* We use NODELABEL here because the nrfx API requires us to call
764
770
* functions which are named according to SoC peripheral instance
@@ -862,8 +868,9 @@ static int spi_nrfx_init(const struct device *dev)
862
868
!(DT_GPIO_FLAGS(SPIM(idx), wake_gpios) & GPIO_ACTIVE_LOW),\
863
869
"WAKE line must be configured as active high"); \
864
870
PM_DEVICE_DT_DEFINE(SPIM(idx), spim_nrfx_pm_action); \
865
- SPI_DEVICE_DT_DEFINE (SPIM(idx), \
871
+ SPI_DEVICE_DT_DEINIT_DEFINE (SPIM(idx), \
866
872
spi_nrfx_init, \
873
+ spi_nrfx_deinit, \
867
874
PM_DEVICE_DT_GET(SPIM(idx)), \
868
875
&spi_##idx##_data, \
869
876
&spi_##idx##z_config, \
You can’t perform that action at this time.
0 commit comments