Re: [PATCH 2/4] DMA: PL330: Register the DMA controller with the generic DMA helpers

2013-01-28 Thread Jon Hunter
On 01/28/2013 12:01 PM, Arnd Bergmann wrote: > On Monday 28 January 2013, Jon Hunter wrote: >> On 01/28/2013 08:51 AM, Arnd Bergmann wrote: >>> On Friday 18 January 2013, Padmavathi Venna wrote: + pfi = devm_kzalloc(&adev->dev, sizeof(*pfi), GFP_KERNEL); + if (!pfi) { +

Re: [PATCH 2/4] DMA: PL330: Register the DMA controller with the generic DMA helpers

2013-01-28 Thread Arnd Bergmann
On Monday 28 January 2013, Jon Hunter wrote: > On 01/28/2013 08:51 AM, Arnd Bergmann wrote: > > On Friday 18 January 2013, Padmavathi Venna wrote: > >> + pfi = devm_kzalloc(&adev->dev, sizeof(*pfi), GFP_KERNEL); > >> + if (!pfi) { > >> + dev_err(&adev->dev, "unable to allo

Re: [PATCH 2/4] DMA: PL330: Register the DMA controller with the generic DMA helpers

2013-01-28 Thread Jon Hunter
On 01/28/2013 08:51 AM, Arnd Bergmann wrote: > On Friday 18 January 2013, Padmavathi Venna wrote: >> + pfi = devm_kzalloc(&adev->dev, sizeof(*pfi), GFP_KERNEL); >> + if (!pfi) { >> + dev_err(&adev->dev, "unable to allocate mem\n"); >> + return -ENOMEM; >> +

Re: [PATCH 2/4] DMA: PL330: Register the DMA controller with the generic DMA helpers

2013-01-28 Thread Arnd Bergmann
On Friday 18 January 2013, Padmavathi Venna wrote: > + pfi = devm_kzalloc(&adev->dev, sizeof(*pfi), GFP_KERNEL); > + if (!pfi) { > + dev_err(&adev->dev, "unable to allocate mem\n"); > + return -ENOMEM; > + } > + > + pfi->dma_cap = pd->cap_mask; >

[PATCH 2/4] DMA: PL330: Register the DMA controller with the generic DMA helpers

2013-01-18 Thread Padmavathi Venna
This patch registers the pl330 dma controller driver with the generic device tree dma helper functions. Signed-off-by: Padmavathi Venna --- drivers/dma/pl330.c | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c i