mfd: pmic8901: Fix section mismatches
WARNING: drivers/mfd/built-in.o(.text+0x3750): Section mismatch
in reference from the function pm8901_probe() to the function
.devinit.text:pm8xxx_irq_init()
The function pm8901_probe() references
the function __devinit pm8xxx_irq_init().
This is often because pm8901_probe lacks a __devinit
annotation or the annotation of pm8xxx_irq_init is wrong.
Change-Id: I4d6ea52fdacad73bed80e3f5be3e9e08cc49be65
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
diff --git a/drivers/mfd/pmic8901.c b/drivers/mfd/pmic8901.c
index 080a3e3..aec382a 100644
--- a/drivers/mfd/pmic8901.c
+++ b/drivers/mfd/pmic8901.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
@@ -270,7 +270,7 @@
return rc;
}
-static int pm8901_probe(struct platform_device *pdev)
+static int __devinit pm8901_probe(struct platform_device *pdev)
{
int rc;
struct pm8901_platform_data *pdata = pdev->dev.platform_data;