Skip to contentSkip to conversation

MFD: TWL/TPS: fix twl_probe section mismatch warning in mfd/twl-core.c

PATCH In review Bryan Wu 2 participants 2 messages Dec 8, 2010 – Dec 9, 2010

Subsystems (2)
lore
Share & tools
lore

Bryan Wu

author
#0 lore raw

PATCH 1/1 MFD: TWL/TPS: fix twl_probe section mismatch warning in mfd/twl-core.c

Fix the following section mismatch warning when building omap2plus_defconfig:

WARNING: vmlinux.o(.data+0x47d7c): Section mismatch in reference from the variable twl_driver to the function .init.text:twl_probe()

---
 drivers/mfd/twl-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mfd/twl-core.c +1 -1
index 35275ba..3aa46ff 100644
@@ -969,7 +969,7 @@ static int twl_remove(struct i2c_client *client)
 }
 
 /* NOTE:  this driver only handles a single twl4030/tps659x0 chip */
-static int __init
+static int __devinit
 twl_probe(struct i2c_client *client, const struct i2c_device_id *id)
 {
 	int				status;
Signature · 1 line
1.7.1
#1 lore raw

Hi Bryan,

Quoted 4 lines · Bryan Wu

Fix the following section mismatch warning when building omap2plus_defconfig:

WARNING: vmlinux.o(.data+0x47d7c): Section mismatch in reference from the variable twl_driver to the function .init.text:twl_probe()

Patch applied, thanks.

Cheers,
Samuel.

Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/