diff mbox

DMA: PL330: Fix build error (on linux-next-20120924)

Message ID 1348546800-15857-1-git-send-email-sachin.kamat@linaro.org
State Accepted
Headers show

Commit Message

Sachin Kamat Sept. 25, 2012, 4:20 a.m. UTC
Auto resolution of merge conflict between commits 61c6e753 (DMA: PL330:
Check the pointer returned by kzalloc) from Linus tree and 7c71b8eb
(DMA: PL330: Remove redundant runtime_suspend/resume functions) from slave-dma
tree probably led to this build error.

drivers/dma/pl330.c: In function ‘pl330_probe’:
drivers/dma/pl330.c:2921:3: error: label ‘probe_err5’ used but not defined

Cc: Inderpal Singh <inderpal.singh@linaro.org>
Cc: Vinod Koul <vinod.koul@linux.intel.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/dma/pl330.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Sachin Kamat Sept. 25, 2012, 4:25 a.m. UTC | #1
Compile tested using exynos4_defconfig.

On 25 September 2012 09:50, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> Auto resolution of merge conflict between commits 61c6e753 (DMA: PL330:
> Check the pointer returned by kzalloc) from Linus tree and 7c71b8eb
> (DMA: PL330: Remove redundant runtime_suspend/resume functions) from slave-dma
> tree probably led to this build error.
>
> drivers/dma/pl330.c: In function ‘pl330_probe’:
> drivers/dma/pl330.c:2921:3: error: label ‘probe_err5’ used but not defined
>
> Cc: Inderpal Singh <inderpal.singh@linaro.org>
> Cc: Vinod Koul <vinod.koul@linux.intel.com>
> Cc: Stephen Rothwell <sfr@canb.auug.org.au>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
>  drivers/dma/pl330.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
> index dcb88b0..13cc576 100644
> --- a/drivers/dma/pl330.c
> +++ b/drivers/dma/pl330.c
> @@ -2918,7 +2918,7 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id)
>         if (!pdmac->peripherals) {
>                 ret = -ENOMEM;
>                 dev_err(&adev->dev, "unable to allocate pdmac->peripherals\n");
> -               goto probe_err5;
> +               goto probe_err4;
>         }
>
>         for (i = 0; i < num_chan; i++) {
> --
> 1.7.4.1
>
Stephen Rothwell Sept. 26, 2012, 1:16 a.m. UTC | #2
Hi Sachin,

On Tue, 25 Sep 2012 09:50:00 +0530 Sachin Kamat <sachin.kamat@linaro.org> wrote:
>
> Auto resolution of merge conflict between commits 61c6e753 (DMA: PL330:
> Check the pointer returned by kzalloc) from Linus tree and 7c71b8eb
> (DMA: PL330: Remove redundant runtime_suspend/resume functions) from slave-dma
> tree probably led to this build error.
> 
> drivers/dma/pl330.c: In function ‘pl330_probe’:
> drivers/dma/pl330.c:2921:3: error: label ‘probe_err5’ used but not defined
> 
> Cc: Inderpal Singh <inderpal.singh@linaro.org>
> Cc: Vinod Koul <vinod.koul@linux.intel.com>
> Cc: Stephen Rothwell <sfr@canb.auug.org.au>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>

I have added this as a merge fix from today.

Vinod:

Please remember to let Linus know when you ask him to merge the slave-dma
tree during the merge window (or do a commented back merge of the
appropriate part of Linus' tree and fix it before then).
diff mbox

Patch

diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index dcb88b0..13cc576 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -2918,7 +2918,7 @@  pl330_probe(struct amba_device *adev, const struct amba_id *id)
 	if (!pdmac->peripherals) {
 		ret = -ENOMEM;
 		dev_err(&adev->dev, "unable to allocate pdmac->peripherals\n");
-		goto probe_err5;
+		goto probe_err4;
 	}
 
 	for (i = 0; i < num_chan; i++) {