Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 421da89a authored by Padmavathi Venna's avatar Padmavathi Venna Committed by Vinod Koul
Browse files

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: default avatarPadmavathi Venna <padma.v@samsung.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent a80258f9
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -2995,6 +2995,14 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id)
		pi->pcfg.data_bus_width / 8, pi->pcfg.num_chan,
		pi->pcfg.data_bus_width / 8, pi->pcfg.num_chan,
		pi->pcfg.num_peri, pi->pcfg.num_events);
		pi->pcfg.num_peri, pi->pcfg.num_events);


	ret = of_dma_controller_register(adev->dev.of_node,
					 of_dma_pl330_xlate, pdmac);
	if (ret) {
		dev_err(&adev->dev,
		"unable to register DMA to the generic DT DMA helpers\n");
		goto probe_err2;
	}

	return 0;
	return 0;


probe_err2:
probe_err2:
@@ -3015,6 +3023,8 @@ static int __devexit pl330_remove(struct amba_device *adev)
	if (!pdmac)
	if (!pdmac)
		return 0;
		return 0;


	of_dma_controller_free(adev->dev.of_node);

	amba_set_drvdata(adev, NULL);
	amba_set_drvdata(adev, NULL);


	/* Idle the DMAC */
	/* Idle the DMAC */