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>
/**
* 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);