public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MFD: TWL/TPS: fix twl_probe section mismatch warning in mfd/twl-core.c
@ 2010-12-07  0:35 Paul Walmsley
  2010-12-07  1:36 ` Bryan Wu
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Walmsley @ 2010-12-07  0:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-omap, Samuel Ortiz


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()

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
---
 drivers/mfd/twl-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c
index 35275ba..615cf38 100644
--- a/drivers/mfd/twl-core.c
+++ b/drivers/mfd/twl-core.c
@@ -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
 twl_probe(struct i2c_client *client, const struct i2c_device_id *id)
 {
 	int				status;
-- 
1.7.2.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-12-08  1:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-07  0:35 [PATCH] MFD: TWL/TPS: fix twl_probe section mismatch warning in mfd/twl-core.c Paul Walmsley
2010-12-07  1:36 ` Bryan Wu
2010-12-07  1:40   ` Paul Walmsley
2010-12-07  9:48     ` Samuel Ortiz
2010-12-07 16:12       ` Paul Walmsley
2010-12-08  1:45         ` Bryan Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox