hwmon: msm_adc: Fix section mismatches
WARNING: drivers/hwmon/built-in.o(.text+0x1204): Section mismatch
in reference from the function msm_adc_probe() to the function
.devinit.text:msm_rpc_adc_init()
The function msm_adc_probe() references
the function __devinit msm_rpc_adc_init().
This is often because msm_adc_probe lacks a __devinit
annotation or the annotation of msm_rpc_adc_init is wrong.
Change-Id: I277124f27f732bdf411533225459cd26c39572eb
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
diff --git a/drivers/hwmon/msm_adc.c b/drivers/hwmon/msm_adc.c
index b8d581e..39bfc3a 100644
--- a/drivers/hwmon/msm_adc.c
+++ b/drivers/hwmon/msm_adc.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
@@ -1380,7 +1380,7 @@
},
};
-static int msm_adc_probe(struct platform_device *pdev)
+static int __devinit msm_adc_probe(struct platform_device *pdev)
{
struct msm_adc_platform_data *pdata = pdev->dev.platform_data;
struct msm_adc_drv *msm_adc;