From: Frank Li <[email protected]> Use the dmaengine_get_copy_align() helper instead of directly accessing the copy_align field from the DMA device structure.
No functional change and prepare to move struct dma_device to private. Signed-off-by: Frank Li <[email protected]> --- drivers/gpu/drm/xlnx/zynqmp_disp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xlnx/zynqmp_disp.c b/drivers/gpu/drm/xlnx/zynqmp_disp.c index e998f22686748..0753236b9546a 100644 --- a/drivers/gpu/drm/xlnx/zynqmp_disp.c +++ b/drivers/gpu/drm/xlnx/zynqmp_disp.c @@ -1433,7 +1433,7 @@ int zynqmp_disp_probe(struct zynqmp_dpsub *dpsub) struct zynqmp_disp_layer *layer; layer = &disp->layers[ZYNQMP_DPSUB_LAYER_VID]; - dpsub->dma_align = 1 << layer->dmas[0].chan->device->copy_align; + dpsub->dma_align = 1 << dmaengine_get_copy_align(layer->dmas[0].chan); } dpsub->disp = disp; -- 2.43.0
