Commit 4f9ac180 authored by Ron Smith's avatar Ron Smith Committed by Christopher Friedt
Browse files

drivers: dma: dma_sam0: change sam0 DMA to higher priority init.



fixes peripheral drivers such as async uart that rely on dma being
ready failing because dma is not initialized yet.

Signed-off-by: default avatarRon Smith <rockyowl171@gmail.com>
parent 0d538447
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -458,5 +458,5 @@ static const struct dma_driver_api dma_sam0_api = {
};

DEVICE_DT_INST_DEFINE(0, &dma_sam0_init, NULL,
		    &dmac_data, NULL, POST_KERNEL,
		    CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &dma_sam0_api);
		    &dmac_data, NULL, PRE_KERNEL_1,
		    CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &dma_sam0_api);