From patchwork Tue Jul 24 08:54:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 1230601 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 08AC1DF25A for ; Tue, 24 Jul 2012 08:57:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752538Ab2GXI5Y (ORCPT ); Tue, 24 Jul 2012 04:57:24 -0400 Received: from na3sys009aog132.obsmtp.com ([74.125.149.250]:48010 "EHLO na3sys009aog132.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752476Ab2GXI5V (ORCPT ); Tue, 24 Jul 2012 04:57:21 -0400 Received: from mail-lb0-f171.google.com ([209.85.217.171]) (using TLSv1) by na3sys009aob132.postini.com ([74.125.148.12]) with SMTP ID DSNKUA5jcFZYKWNbH65GGwT2FZzfjpXzejzr@postini.com; Tue, 24 Jul 2012 01:57:21 PDT Received: by lbom4 with SMTP id m4so9136923lbo.2 for ; Tue, 24 Jul 2012 01:57:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=ib8fJx23YCCiOG9p0k68L0AimpKfkG+Of6FsdOP45cQ=; b=cLRz2w34sHSPDDu2ISNZIYsVzP5N5ltSf632MP7BM81jsuqPkD/bJoA3pfD21awdVU e0bL54Z3WHyKdmkDbq4vjac7QHIPCkVNHAA7Aiqcc7FCrGAMc9ECNPOn7Ln4mTVF8qhY s9CxHK/uJ9svPY9arSscwBTHm43HW2yHino+42SxoLe/eRV/i80em1MPGUWW23FlBOmD nyZbC+dXFyhWFPL8FmkK6evlK2k66DfxMWtzA/uQTctWVtcaBK5a4Lyhm6wnsXDDwQGx sFDyb3yvwJBo363BoTmz/gb8vnGbTwxZGn+i4z5YPnTu6LD5G+gUGFYtyKAAIlASUugg sW0w== Received: by 10.152.147.33 with SMTP id th1mr20968805lab.9.1343120239102; Tue, 24 Jul 2012 01:57:19 -0700 (PDT) Received: from localhost (cs78217178.pp.htv.fi. [62.78.217.178]) by mx.google.com with ESMTPS id hm7sm15926430lab.12.2012.07.24.01.57.17 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Jul 2012 01:57:18 -0700 (PDT) From: Felipe Balbi To: Tony Lindgren Cc: Linux OMAP Mailing List , Linux ARM Kernel Mailing List , Felipe Balbi Subject: [PATCH 3/5] arm: omap: debug-leds: add section annotation to probe Date: Tue, 24 Jul 2012 11:54:00 +0300 Message-Id: <1343120042-16695-4-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.11 In-Reply-To: <1343120042-16695-1-git-send-email-balbi@ti.com> References: <1343120042-16695-1-git-send-email-balbi@ti.com> X-Gm-Message-State: ALoCoQkJnMtYt2mw6xWVQjS8NtUj55BDFLnjmkZJuGErQTizuk+IVY10JbB4I3O8osJezZhtB5Oq Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org put our probe function on __devinit section, so it can be freed on some cases. Signed-off-by: Felipe Balbi --- arch/arm/plat-omap/debug-leds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-omap/debug-leds.c b/arch/arm/plat-omap/debug-leds.c index 615d085..392daa8 100644 --- a/arch/arm/plat-omap/debug-leds.c +++ b/arch/arm/plat-omap/debug-leds.c @@ -236,7 +236,7 @@ fpga_led_set(struct led_classdev *cdev, enum led_brightness value) spin_unlock_irqrestore(&lock, flags); } -static void __init newled_init(struct device *dev) +static void __devinit newled_init(struct device *dev) { unsigned i; struct dbg_led *led; @@ -254,7 +254,7 @@ static void __init newled_init(struct device *dev) /*-------------------------------------------------------------------------*/ -static int /* __init */ fpga_probe(struct platform_device *pdev) +static int __devinit fpga_probe(struct platform_device *pdev) { struct resource *iomem;