From d7c353cdf458fd53fde354fb766e6e2b227f84fe Mon Sep 17 00:00:00 2001 From: Anisetti Avinash Krishna Date: Fri, 22 Sep 2023 19:10:09 +0530 Subject: [PATCH] drivers: dma: intel_lpss: Used phandle to get base address Added usage of dma_parent phandle instead of using parent-child method to get DMA base address. Signed-off-by: Anisetti Avinash Krishna --- drivers/dma/Kconfig.intel_lpss | 3 ++- drivers/dma/dma_intel_lpss.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/dma/Kconfig.intel_lpss b/drivers/dma/Kconfig.intel_lpss index d475c742784..3f58618d869 100644 --- a/drivers/dma/Kconfig.intel_lpss +++ b/drivers/dma/Kconfig.intel_lpss @@ -5,8 +5,9 @@ config DMA_INTEL_LPSS bool "INTEL LPSS DMA driver" - default n + default y depends on DT_HAS_INTEL_LPSS_ENABLED + select DEVICE_DEPS help INTEL LPSS DMA driver. diff --git a/drivers/dma/dma_intel_lpss.c b/drivers/dma/dma_intel_lpss.c index c1ae1763e50..b76d0820815 100644 --- a/drivers/dma/dma_intel_lpss.c +++ b/drivers/dma/dma_intel_lpss.c @@ -82,7 +82,7 @@ static const struct dma_driver_api dma_intel_lpss_driver_api = { .dw_cfg = { \ .base = 0, \ }, \ - .parent = DEVICE_DT_GET(DT_INST_PARENT(n)), \ + .parent = DEVICE_DT_GET(DT_INST_PHANDLE(n, dma_parent)),\ }; \ \ static struct dw_dma_dev_data dma_intel_lpss##n##_data = { \