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: 1230711 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 5C3983FD4F for ; Tue, 24 Jul 2012 09:08:48 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Stazs-0001Mb-Sd; Tue, 24 Jul 2012 09:01:40 +0000 Received: from na3sys009aog130.obsmtp.com ([74.125.149.143]) by merlin.infradead.org with smtps (Exim 4.76 #1 (Red Hat Linux)) id 1Stavj-000195-0M for linux-arm-kernel@lists.infradead.org; Tue, 24 Jul 2012 08:57:25 +0000 Received: from mail-lb0-f169.google.com ([209.85.217.169]) (using TLSv1) by na3sys009aob130.postini.com ([74.125.148.12]) with SMTP ID DSNKUA5jcFZYKWNbH65GGwT2FZzfjpXzejzr@postini.com; Tue, 24 Jul 2012 01:57:22 PDT Received: by lbjn8 with SMTP id n8so11207905lbj.14 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=YPVDkqHeElRmoVzNvJSgel5beapDA2fVJ5wODA3lVRO8YB2cS1gfTQ183XXXNSQE6C 36LcDkVArJnnBAbpeJMxGcPESuNjoafvl43I8hvAuT1a/jxfHT95B79KXm7FAV5Ab5xr KDSZuihLDLf+eh6r6oqNRzrCMSQSUaEvq0pUnm3UzYotljTp+2XRCEZSN/b1h8Hf+eri p2Fh/5STUtpSrRsp7WlI1sa/agrdh221z5c1KGKqMK7KwTl25U2fkh6ypGEGCI0VFcMS CL+j3hPa23jC6ZWGqyn7XHh4ekKag43oXlweXi0JawroGeBDKeifXSifdzgYujfr3LL7 zQ2A== 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 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: ALoCoQnG8xS+zbEudjCTe1Q4NVZvI8acRYMQPH3Y/cNBNpJN6uyMJ96FrTqhF4Ibyfy21g8b0jWi X-Spam-Note: CRM114 invocation failed X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [74.125.149.143 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Linux OMAP Mailing List , Felipe Balbi , Linux ARM Kernel Mailing List X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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;