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:
parent
0b57fdb1ad
commit
d7c353cdf4
|
@ -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.
|
||||
|
||||
|
|
|
@ -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 = { \
|
||||
|
|
Loading…
Reference in a new issue