Skip to content

Commit 5a70f54

Browse files
committed
drivers: spi: spi_nrfx_spis: Fix compile error
The spi_nrfx_spis driver uses nodelabel so we need to use DEVICE_DT_DEFINE instead of DEVICE_DT_INST_DEFINE. Signed-off-by: Kumar Gala <[email protected]>
1 parent 040b143 commit 5a70f54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi_nrfx_spis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ static int init_spis(const struct device *dev,
287287
.spis = NRFX_SPIS_INSTANCE(idx), \
288288
.max_buf_len = (1 << SPIS##idx##_EASYDMA_MAXCNT_SIZE) - 1, \
289289
}; \
290-
DEVICE_DT_INST_DEFINE(idx, \
290+
DEVICE_DT_DEFINE(SPIS(idx), \
291291
spi_##idx##_init, \
292292
device_pm_control_nop, \
293293
&spi_##idx##_data, \

0 commit comments

Comments
 (0)