Skip to content

Commit

Permalink
avr32: make intc_resume() return void to conform to syscore_ops
Browse files Browse the repository at this point in the history
This patch removes the unneeded, and now wrong, return 0 from intc_resume() and
lets the function return void instead. This matches the resume callback in
struct syscore_ops.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
  • Loading branch information
Hans-Christian Egtvedt committed Jun 14, 2011
1 parent 3000f00 commit c162755
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/avr32/mach-at32ap/intc.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,12 @@ static int intc_suspend(void)
return 0;
}

static int intc_resume(void)
static void intc_resume(void)
{
int i;

for (i = 0; i < 64; i++)
intc_writel(&intc0, INTPR0 + 4 * i, intc0.saved_ipr[i]);

return 0;
}
#else
#define intc_suspend NULL
Expand Down

0 comments on commit c162755

Please sign in to comment.