From patchwork Tue Oct 2 16:36:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 11956 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 4E5F523EFF for ; Tue, 2 Oct 2012 16:37:20 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id D46C9A18710 for ; Tue, 2 Oct 2012 16:37:19 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so14609064iej.11 for ; Tue, 02 Oct 2012 09:37:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-provags-id:x-gm-message-state; bh=C3EMlhSt2gopkan8qHVRKnpuj7A802hkGRRyhC4SlFs=; b=PPYiadr5U96OGGrxx1j/EpSDHn5fgnmq3PPljawgEAyXIyD3mskFlHhjtI7U5ap3OW kzWY2m73yrL2Da9mDgVdcvFo9CzWuQ7l3YUjBvosL4wqi9VdH4tyUFCox9RL0bXFBo3r k6GmXiBiu5mtX6JwR5Duvhal5fZoCaZh5QujLSAjDwRdJUUKSOC+uaJtsejO70OC2/V8 oKht3+n+1RxW/ScZBfVvd06GrtYVLPs6QML+LHX5sQY0+YqzkXET0pZyYR8klcaAx4k8 KgFg2zQBR/QvN6c5G/ld8r8WK9lN2b/wmU0yKmkNLWWFSk4VDyE0KteYwmyZCvTC5lu9 RKKg== Received: by 10.42.84.69 with SMTP id k5mr14582760icl.5.1349195839603; Tue, 02 Oct 2012 09:37:19 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp92061igc; Tue, 2 Oct 2012 09:37:18 -0700 (PDT) Received: by 10.180.105.6 with SMTP id gi6mr23145195wib.4.1349195838206; Tue, 02 Oct 2012 09:37:18 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.126.186]) by mx.google.com with ESMTPS id fh9si3211117wib.27.2012.10.02.09.37.17 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Oct 2012 09:37:18 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.126.186 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.126.186; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.126.186 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de Received: from localhost.localdomain (HSI-KBW-149-172-5-253.hsi13.kabel-badenwuerttemberg.de [149.172.5.253]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MB15o-1TBQUK2Bro-00ALed; Tue, 02 Oct 2012 18:37:17 +0200 From: Arnd Bergmann To: linux-arm-kernel@infradead.org Cc: arm@kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Sekhar Nori , Kevin Hilman Subject: [PATCH 14/17] ARM: davinci: don't mark da850_register_cpufreq as __init Date: Tue, 2 Oct 2012 18:36:53 +0200 Message-Id: <1349195816-2225-15-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1349195816-2225-1-git-send-email-arnd@arndb.de> References: <1349195816-2225-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:r48ZAw6AXZHnAsIM7obNs9NmDMZVg+ticdTdTHAkYJf VbDlbxPt+9WW//GRRR84+yf4i2TFtiuw4s8uTn7pz8xdt2EXom LbWMNpb1Kxcnwcc7R8L6NyCmFvmBQsU+lN5THBeN672xGnNvyf Lz+asCMYqV6sf1/Pk1DHO246TR/I3kLRjGngozfb9LeqI3NdJ1 eFOnanConlh8eM5fU0zQ+3ptoEzQ3L6e9po0tNH/54xJyx0SRH YtJvEcVwWll6V/3WpyiyPDSZeKvbXZuI3y22JGb0PjhWzqGoAI KSYXWn1ryVqF/ECy0W6SPxaJVgDTN2Y8gTAFWTgFFBb8E6MR0s Cp6jXII4/5pqV2JvtHpGCIJkQUAIjSG5pcUn0EpqoLe/fscLyL Yc4l6plz10MBw== X-Gm-Message-State: ALoCoQnWeXMg5A4EYcc4PeyUZNR2XZvOtoDB5hv3+8DrA7J3vjsd59E04lm4+9M8nfMt4AMM5cdt The mityomapl138_cpufreq_init and read_factory_config function in board-mityomapl138.c are not __init functions and might be called at a later stage, so da850_register_cpufreq must not be __init either. Without this patch, building da8xx_omapl_defconfig results in: WARNING: arch/arm/mach-davinci/built-in.o(.text+0x2eb4): Section mismatch in reference from the function read_factory_config() to the function .init.text:da850_register_cpufreq() The function read_factory_config() references the function __init da850_register_cpufreq(). This is often because read_factory_config lacks a __init annotation or the annotation of da850_register_cpufreq is wrong. Signed-off-by: Arnd Bergmann Cc: Sekhar Nori Cc: Kevin Hilman --- arch/arm/mach-davinci/da850.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index b44dc84..8329e5b 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c @@ -939,7 +939,7 @@ static struct platform_device da850_cpufreq_device = { unsigned int da850_max_speed = 300000; -int __init da850_register_cpufreq(char *async_clk) +int da850_register_cpufreq(char *async_clk) { int i;