drivers: spi: nrfx_spim: use DT_IRQN
Driver was not using Devicetree to obtain the SPIM IRQ number. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
ac84039060
commit
717f81795b
1 changed files with 1 additions and 2 deletions
|
@ -532,8 +532,7 @@ static int spim_nrfx_pm_action(const struct device *dev,
|
|||
{ \
|
||||
struct spi_nrfx_data *dev_data = dev->data; \
|
||||
int err; \
|
||||
IRQ_CONNECT(NRFX_IRQ_NUMBER_GET(NRF_SPIM##idx), \
|
||||
DT_IRQ(SPIM(idx), priority), \
|
||||
IRQ_CONNECT(DT_IRQN(SPIM(idx)), DT_IRQ(SPIM(idx), priority), \
|
||||
nrfx_isr, nrfx_spim_##idx##_irq_handler, 0); \
|
||||
IF_ENABLED(CONFIG_PINCTRL, ( \
|
||||
const struct spi_nrfx_config *dev_config = dev->config;\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue