Skip to content

Commit

Permalink
ARM: S3C24XX: drop return codes in void function of dma.c
Browse files Browse the repository at this point in the history
Commit bb072c3 (ARM / Samsung: Use struct syscore_ops for "core" power
management) turned s3c2410_dma_resume_chan() from int to void. So, drop
the actual return values, too. Fixes:

arch/arm/plat-s3c24xx/dma.c: In function 's3c2410_dma_resume_chan':
arch/arm/plat-s3c24xx/dma.c:1238:3: warning: 'return' with a value, in function returning void
arch/arm/plat-s3c24xx/dma.c:1250:2: warning: 'return' with a value, in function returning void

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
  • Loading branch information
Wolfram Sang authored and Kukjin Kim committed Jul 8, 2011
1 parent 5838e9b commit cb26a7b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/arm/plat-s3c24xx/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ static void s3c2410_dma_resume_chan(struct s3c2410_dma_chan *cp)
/* restore channel's hardware configuration */

if (!cp->in_use)
return 0;
return;

printk(KERN_INFO "dma%d: restoring configuration\n", cp->number);

Expand All @@ -1242,8 +1242,6 @@ static void s3c2410_dma_resume_chan(struct s3c2410_dma_chan *cp)

if (cp->map != NULL)
dma_sel.select(cp, cp->map);

return 0;
}

static void s3c2410_dma_resume(void)
Expand Down

0 comments on commit cb26a7b

Please sign in to comment.