]> xenbits.xensource.com Git - people/aperard/linux-chromebook.git/commitdiff
CHROMIUM: pm-check: s3c_pm_check_init returns int
authorSimon Que <sque@chromium.org>
Fri, 1 Feb 2013 19:31:04 +0000 (11:31 -0800)
committerChromeBot <chrome-bot@google.com>
Fri, 1 Feb 2013 20:24:21 +0000 (12:24 -0800)
The proper behavior for a late_initcall() function is to return int.
See include/linux/init.h.  Otherwise compiler throws a warning.

BUG=chromium-os:5542
TEST=emerge-daisy chromeos-kernel, make sure there is no warning in this
file.

Change-Id: I47e1f81c622721b06fb715e7c4a876857d9b45b3
Signed-off-by: Simon Que <sque@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/42468
Reviewed-by: Michael Spang <spang@chromium.org>
arch/arm/plat-samsung/pm-check.c

index f659d0c33806180af15cffc8e04367c6886189cb..240430f511fe11bc82b8f13bf566626f4e785cf8 100644 (file)
@@ -659,9 +659,11 @@ void s3c_pm_check_set_interleave_bytes(int interleave_bytes)
 /**
  * s3c_pm_check_init - Init code for pm_check
  */
-static void __init s3c_pm_check_init(void)
+static int __init s3c_pm_check_init(void)
 {
        /* Call prepare once at init time to make sure we get memory. */
        s3c_pm_check_prepare();
+
+       return 0;
 }
 late_initcall(s3c_pm_check_init);