diff options
Diffstat (limited to 'drivers/core/device.c')
| -rw-r--r-- | drivers/core/device.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/core/device.c b/drivers/core/device.c index 779f371b9d5..d365204ba11 100644 --- a/drivers/core/device.c +++ b/drivers/core/device.c @@ -473,7 +473,11 @@ static int device_get_dma_constraints(struct udevice *dev) return ret; } - dev_set_dma_offset(dev, cpu - bus); +#if CONFIG_IS_ENABLED(DM_DMA) + dev->dma_cpu = cpu; + dev->dma_bus = bus; + dev->dma_size = size; +#endif return 0; } |
