hwmon: epm: Fix section mismatch
WARNING: vmlinux.o(.text+0x4d0d6c): Section mismatch in reference
from the function epm_adc_probe() to the function
.devinit.text:epm_adc_init_hwmon()
The function epm_adc_probe() references
the function __devinit epm_adc_init_hwmon().
This is often because epm_adc_probe lacks a __devinit
annotation or the annotation of epm_adc_init_hwmon is wrong.
Change-Id: I206ab994bc59bd5a5b1256a40da2e2923d5bc36b
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
diff --git a/drivers/hwmon/epm_adc.c b/drivers/hwmon/epm_adc.c
index daa0b58..0bd9cbc 100644
--- a/drivers/hwmon/epm_adc.c
+++ b/drivers/hwmon/epm_adc.c
@@ -805,7 +805,7 @@
},
};
-static int epm_adc_probe(struct platform_device *pdev)
+static int __devinit epm_adc_probe(struct platform_device *pdev)
{
struct epm_adc_drv *epm_adc;
struct epm_adc_platform_data *pdata = pdev->dev.platform_data;