From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754190AbZD2J57 (ORCPT ); Wed, 29 Apr 2009 05:57:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752664AbZD2J5t (ORCPT ); Wed, 29 Apr 2009 05:57:49 -0400 Received: from rv-out-0506.google.com ([209.85.198.230]:24388 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752867AbZD2J5t (ORCPT ); Wed, 29 Apr 2009 05:57:49 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:mime-version :content-type:content-disposition:user-agent; b=TTESIe1QpPhrHNok7fR8YC9NRXUghfzw+ip1cJyz4tfllbIdi3Ap3OHTF/QpYHTU37 cxHuP1TxPd7P4WHZetv5ZHP6aj/c6fuuUm2jpeQXMAjW6EExML+Z0V11joTixq0B9DSo /Q7NUia1PGsxUFV4zRJ9rAoNmDSHCQCM6eERE= Date: Wed, 29 Apr 2009 17:56:02 +0800 From: Zhenwen Xu To: linux-kernel@vger.kernel.org Cc: rpurdie@rpsys.net Subject: [PATCH] fix a Section mismatch on drivers/leds/leds-gpio.c Message-ID: <20090429095602.GB4072@helight> Reply-To: Zhenwen Xu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix this section mismatch: WARNING: drivers/leds/leds-gpio.o(.text+0x153): Section mismatch in reference from the function gpio_led_probe() to the function .devinit.text:create_gpio_led() The function gpio_led_probe() references the function __devinit create_gpio_led(). This is often because gpio_led_probe lacks a __devinit annotation or the annotation of create_gpio_led is wrong. Signed-off-by: Zhenwen Xu --- drivers/leds/leds-gpio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c index d210905..76895e6 100644 --- a/drivers/leds/leds-gpio.c +++ b/drivers/leds/leds-gpio.c @@ -129,7 +129,7 @@ static void delete_gpio_led(struct gpio_led_data *led) } #ifdef CONFIG_LEDS_GPIO_PLATFORM -static int gpio_led_probe(struct platform_device *pdev) +static int __devinit gpio_led_probe(struct platform_device *pdev) { struct gpio_led_platform_data *pdata = pdev->dev.platform_data; struct gpio_led_data *leds_data; -- 1.5.6.5 -- -------------------------------- http://zhwen.org - Open and Free