* [PATCH v2] mfd: Remove __devexit annotation for pm80x_deinit
@ 2012-07-11 2:01 Axel Lin
2012-07-16 13:28 ` Samuel Ortiz
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2012-07-11 2:01 UTC (permalink / raw)
To: SamuelOrtiz; +Cc: Qiao Zhou, Arnd Bergmann, linux-kernel
This fixes below section mismatch warning:
LD drivers/mfd/built-in.o
WARNING: drivers/mfd/built-in.o(.devinit.text+0x46c): Section mismatch in reference from the function pm800_probe() to the function .devexit.text:pm80x_deinit()
The function __devinit pm800_probe() references
a function __devexit pm80x_deinit().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __devexit annotation of
pm80x_deinit() so it may be used outside an exit section.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
v2: Also remove the __devexit annotation in 88pm80x.h
drivers/mfd/88pm80x.c | 2 +-
include/linux/mfd/88pm80x.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mfd/88pm80x.c b/drivers/mfd/88pm80x.c
index 62da342..cd0bf52 100644
--- a/drivers/mfd/88pm80x.c
+++ b/drivers/mfd/88pm80x.c
@@ -91,7 +91,7 @@ err_regmap_init:
}
EXPORT_SYMBOL_GPL(pm80x_init);
-int __devexit pm80x_deinit(struct i2c_client *client)
+int pm80x_deinit(struct i2c_client *client)
{
struct pm80x_chip *chip = i2c_get_clientdata(client);
diff --git a/include/linux/mfd/88pm80x.h b/include/linux/mfd/88pm80x.h
index 103f06d..a0ca0dc 100644
--- a/include/linux/mfd/88pm80x.h
+++ b/include/linux/mfd/88pm80x.h
@@ -365,5 +365,5 @@ static inline int pm80x_dev_resume(struct device *dev)
extern int pm80x_init(struct i2c_client *client,
const struct i2c_device_id *id) __devinit;
-extern int pm80x_deinit(struct i2c_client *client) __devexit;
+extern int pm80x_deinit(struct i2c_client *client);
#endif /* __LINUX_MFD_88PM80X_H */
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] mfd: Remove __devexit annotation for pm80x_deinit
2012-07-11 2:01 [PATCH v2] mfd: Remove __devexit annotation for pm80x_deinit Axel Lin
@ 2012-07-16 13:28 ` Samuel Ortiz
0 siblings, 0 replies; 2+ messages in thread
From: Samuel Ortiz @ 2012-07-16 13:28 UTC (permalink / raw)
To: Axel Lin; +Cc: Qiao Zhou, Arnd Bergmann, linux-kernel
Hi Axel,
On Wed, Jul 11, 2012 at 10:01:10AM +0800, Axel Lin wrote:
> This fixes below section mismatch warning:
>
> LD drivers/mfd/built-in.o
> WARNING: drivers/mfd/built-in.o(.devinit.text+0x46c): Section mismatch in reference from the function pm800_probe() to the function .devexit.text:pm80x_deinit()
> The function __devinit pm800_probe() references
> a function __devexit pm80x_deinit().
> This is often seen when error handling in the init function
> uses functionality in the exit path.
> The fix is often to remove the __devexit annotation of
> pm80x_deinit() so it may be used outside an exit section.
>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
> v2: Also remove the __devexit annotation in 88pm80x.h
>
> drivers/mfd/88pm80x.c | 2 +-
> include/linux/mfd/88pm80x.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Applied as well, thanks.
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-16 13:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-11 2:01 [PATCH v2] mfd: Remove __devexit annotation for pm80x_deinit Axel Lin
2012-07-16 13:28 ` Samuel Ortiz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox