msm_charger: Fix section mismatch
WARNING: drivers/power/built-in.o(.text+0x256c): Section mismatch
in reference from the function msm_battery_gauge_register() to
the function .init.text:determine_initial_batt_status()
The function msm_battery_gauge_register() references
the function __init determine_initial_batt_status().
This is often because msm_battery_gauge_register lacks a __init
annotation or the annotation of determine_initial_batt_status is
wrong.
We could mark msm_battery_gauge_register() as __init but it's
an exported symbol so let's just remove __init from the
determine_initial_batt_status() function instead.
Change-Id: I6fa2ecd44a7c5e1d6444fa383b4d6dcac600794a
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
diff --git a/drivers/power/msm_charger.c b/drivers/power/msm_charger.c
index 0cd7967..8594ec2 100644
--- a/drivers/power/msm_charger.c
+++ b/drivers/power/msm_charger.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
+/* Copyright (c) 2010-2012, Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -991,7 +991,7 @@
usb_chg_current = mA;
}
-static int __init determine_initial_batt_status(void)
+static int determine_initial_batt_status(void)
{
if (is_battery_present())
if (is_battery_id_valid())