drivers: sam0: Fix deprecated instance macro usage

During conversion in #16815 a few device tree instance macro aliases
where missed (probably due to them existing to support future SoCs
and so not currently compiled), this fixes their usage.

Signed-off-by: Derek Hageman <hageman@inthat.cloud>
This commit is contained in:
Derek Hageman 2019-06-22 07:55:51 -06:00 committed by Anas Nashif
commit 59786b43b3
2 changed files with 19 additions and 19 deletions

View file

@ -430,16 +430,16 @@ static int dma_sam0_init(struct device *dev)
#ifdef DT_INST_0_ATMEL_SAM0_DMAC_IRQ_0
DMA_SAM0_IRQ_CONNECT(0);
#endif
#ifdef DT_ATMEL_SAM0_DMAC_0_IRQ_1
#ifdef DT_INST_0_ATMEL_SAM0_DMAC_IRQ_1
DMA_SAM0_IRQ_CONNECT(1);
#endif
#ifdef DT_ATMEL_SAM0_DMAC_0_IRQ_2
#ifdef DT_INST_0_ATMEL_SAM0_DMAC_IRQ_2
DMA_SAM0_IRQ_CONNECT(2);
#endif
#ifdef DT_ATMEL_SAM0_DMAC_0_IRQ_3
#ifdef DT_INST_0_ATMEL_SAM0_DMAC_IRQ_3
DMA_SAM0_IRQ_CONNECT(3);
#endif
#ifdef DT_ATMEL_SAM0_DMAC_0_IRQ_4
#ifdef DT_INST_0_ATMEL_SAM0_DMAC_IRQ_4
DMA_SAM0_IRQ_CONNECT(4);
#endif