drivers: dma: nios2_msgdma: Fix typo in irq priority

Extracting priority from the devicetree should specify instance 0, not
'inst'.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2021-03-02 19:59:51 -06:00 committed by Anas Nashif
parent a9a7e27b21
commit c308c4b1f6
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ static int nios2_msgdma0_initialize(const struct device *dev)
alt_msgdma_init(dev_cfg->msgdma_dev, 0, DT_INST_IRQN(0));
IRQ_CONNECT(DT_INST_IRQN(0), DT_INST_IRQ(inst, priority),
IRQ_CONNECT(DT_INST_IRQN(0), DT_INST_IRQ(0, priority),
nios2_msgdma_isr, DEVICE_DT_INST_GET(0), 0);
irq_enable(DT_INST_IRQN(0));