Skip to content

Commit 77dfdeb

Browse files
ezequielgarciaJason Cooper
authored andcommitted
ARM: kirkwood: kirkwood_pm_init() should return void
This function was originally meant to return void as declared in the common.h header. Fix it and include the header to catch these errors in the future. [jac] removed 'return 0;' to clear this warning: arch/arm/mach-kirkwood/pm.c: In function 'kirkwood_pm_init': arch/arm/mach-kirkwood/pm.c:73:2: warning: 'return' with a value, in function returning void [enabled by default] Reported-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Acked-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
1 parent f28d7de commit 77dfdeb

File tree

1 file changed

+2
-2
lines changed
  • arch/arm/mach-kirkwood

1 file changed

+2
-2
lines changed

arch/arm/mach-kirkwood/pm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <linux/suspend.h>
1919
#include <linux/io.h>
2020
#include <mach/bridge-regs.h>
21+
#include "common.h"
2122

2223
static void __iomem *ddr_operation_base;
2324

@@ -65,9 +66,8 @@ static const struct platform_suspend_ops kirkwood_suspend_ops = {
6566
.valid = kirkwood_pm_valid_standby,
6667
};
6768

68-
int __init kirkwood_pm_init(void)
69+
void __init kirkwood_pm_init(void)
6970
{
7071
ddr_operation_base = ioremap(DDR_OPERATION_BASE, 4);
7172
suspend_set_ops(&kirkwood_suspend_ops);
72-
return 0;
7373
}

0 commit comments

Comments
 (0)