Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

DMA: PL330: Register the DMA controller with the generic DMA helpers

This patch registers the pl330 dma controller driver with the generic
device tree dma helper functions.

Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Padmavathi Venna and committed by
Vinod Koul
421da89a a80258f9

+10
+10
drivers/dma/pl330.c
··· 2995 2995 pi->pcfg.data_bus_width / 8, pi->pcfg.num_chan, 2996 2996 pi->pcfg.num_peri, pi->pcfg.num_events); 2997 2997 2998 + ret = of_dma_controller_register(adev->dev.of_node, 2999 + of_dma_pl330_xlate, pdmac); 3000 + if (ret) { 3001 + dev_err(&adev->dev, 3002 + "unable to register DMA to the generic DT DMA helpers\n"); 3003 + goto probe_err2; 3004 + } 3005 + 2998 3006 return 0; 2999 3007 3000 3008 probe_err2: ··· 3022 3014 3023 3015 if (!pdmac) 3024 3016 return 0; 3017 + 3018 + of_dma_controller_free(adev->dev.of_node); 3025 3019 3026 3020 amba_set_drvdata(adev, NULL); 3027 3021