Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753562Ab0LGAfl (ORCPT ); Mon, 6 Dec 2010 19:35:41 -0500 Received: from utopia.booyaka.com ([72.9.107.138]:56465 "EHLO utopia.booyaka.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752582Ab0LGAfk (ORCPT ); Mon, 6 Dec 2010 19:35:40 -0500 Date: Mon, 6 Dec 2010 17:35:39 -0700 (MST) From: Paul Walmsley To: linux-kernel@vger.kernel.org cc: linux-omap@vger.kernel.org, Samuel Ortiz Subject: [PATCH] MFD: TWL/TPS: fix twl_probe section mismatch warning in mfd/twl-core.c Message-ID: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1062 Lines: 32 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 Cc: Samuel Ortiz --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/