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 <anisetti.avinash.krishna@intel.com>
This commit is contained in:
Anisetti Avinash Krishna 2023-09-22 19:10:09 +05:30 committed by Anas Nashif
parent 0b57fdb1ad
commit d7c353cdf4
2 changed files with 3 additions and 2 deletions

View file

@ -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.

View file

@ -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 = { \