Skip to content
Permalink
Browse files

backup mode: the backup_mode() function don't need to return a value

As the return value is not used, remove it from this procedure.

Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
  • Loading branch information
noglitch committed May 4, 2017
1 parent 148142d commit 51a7a5c2889830f2cd05c603759ffdb3605afaa6
Showing with 4 additions and 4 deletions.
  1. +4 −4 driver/backup.c
@@ -58,26 +58,26 @@ static struct at91_pm_bu {
* */
static int resuming = -1;

static int backup_mode(void)
static void backup_mode(void)
{
int ret;

resuming = 0;

ret = readl(AT91C_BASE_SFRBU + SFRBU_DDRBUMCR);
if (ret == 0)
return 0;
return;

do {
ret = readl(AT91C_BASE_SECUMOD + 0x14);
} while (ret == 0);

pm_bu = (struct at91_pm_bu *)AT91C_BASE_SECURAM;
if (!pm_bu->suspended)
return 0;
return;

resuming = 1;
return 1;
return;
}

int backup_resume(void)

0 comments on commit 51a7a5c

Please sign in to comment.
You can’t perform that action at this time.