From patchwork Fri Apr 1 12:10:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ameya Palande X-Patchwork-Id: 89252 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-ew0-f56.google.com (mail-ew0-f56.google.com [209.85.215.56]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 5CE4BB6F7E for ; Fri, 1 Apr 2011 23:10:11 +1100 (EST) Received: by ewy27 with SMTP id 27sf272153ewy.11 for ; Fri, 01 Apr 2011 05:10:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:mime-version:x-beenthere:received-spf:from:to :cc:subject:date:message-id:x-mailer:x-nokia-av:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=pUR6H8x7+FFTrO7vYfz+vvqRc8owSGP8t7aQLpYEZtw=; b=5+GSvA5tNKa3VE5sBLDJwq3icm7tM5t3TK2/kyzTxPkjS1tYOU2Ql1NyqIg1spmzK0 VD9Q9GhTjHxxol8khPZ46J4uIn/vC9JvsmqZVT/y4WbOSwhkILHqWNb1sDAyG5KChWSt FFzbIW8nDs9Fz3Xmt1RRXJ0kzO0V99qWpTiB0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=mime-version:x-beenthere:received-spf:from:to:cc:subject:date :message-id:x-mailer:x-nokia-av:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; b=pPD++xCW1YGBvx2h4jdCg+xh3ELlXupeNIstiuNIg4Ghuki9Ffp1QQPYjlWh8o/3YE GQSHunruZ2DbDZ9OJ+q6A9kSkBryVhOPRl6F7BM1kprIgFm3blMyiCOh7c2vbevyhEV+ oLc26E/OzqP7dm0V03UsXYeTQRpnUbPhJ3P64= Received: by 10.213.13.74 with SMTP id b10mr301345eba.1.1301659806292; Fri, 01 Apr 2011 05:10:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.14.11.92 with SMTP id 68ls92939eew.4.p; Fri, 01 Apr 2011 05:10:05 -0700 (PDT) Received: by 10.14.37.135 with SMTP id y7mr256684eea.57.1301659805126; Fri, 01 Apr 2011 05:10:05 -0700 (PDT) Received: by 10.14.37.135 with SMTP id y7mr256683eea.57.1301659805102; Fri, 01 Apr 2011 05:10:05 -0700 (PDT) Received: from mgw-sa02.nokia.com (smtp.nokia.com [147.243.1.48]) by gmr-mx.google.com with ESMTPS id l57si599123eei.4.2011.04.01.05.10.04 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 01 Apr 2011 05:10:05 -0700 (PDT) Received-SPF: pass (google.com: domain of ameya.palande@nokia.com designates 147.243.1.48 as permitted sender) client-ip=147.243.1.48; Received: from chotu.research.nokia.com ([172.21.24.113]) by mgw-sa02.nokia.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id p31CA4sv019693; Fri, 1 Apr 2011 15:10:04 +0300 From: Ameya Palande To: rtc-linux@googlegroups.com Cc: feng.tang@intel.com, meego-kernel@lists.meego.com Subject: [rtc-linux] [PATCH] rtc: mrst: Fix section mismatch warning Date: Fri, 1 Apr 2011 15:10:03 +0300 Message-Id: <1301659803-21721-1-git-send-email-ameya.palande@nokia.com> X-Mailer: git-send-email 1.7.1 X-Nokia-AV: Clean X-Original-Sender: ameya.palande@nokia.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ameya.palande@nokia.com designates 147.243.1.48 as permitted sender) smtp.mail=ameya.palande@nokia.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , WARNING: vmlinux.o(.data+0x25d08): Section mismatch in reference from the variable vrtc_mrst_platform_driver to the function .init.text:vrtc_mrst_platform_probe() The variable vrtc_mrst_platform_driver references the function __init vrtc_mrst_platform_probe() Signed-off-by: Ameya Palande --- drivers/rtc/rtc-mrst.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-mrst.c b/drivers/rtc/rtc-mrst.c index b86bc32..57a11be 100644 --- a/drivers/rtc/rtc-mrst.c +++ b/drivers/rtc/rtc-mrst.c @@ -524,7 +524,6 @@ static void vrtc_mrst_platform_shutdown(struct platform_device *pdev) MODULE_ALIAS("platform:vrtc_mrst"); static struct platform_driver vrtc_mrst_platform_driver = { - .probe = vrtc_mrst_platform_probe, .remove = __exit_p(vrtc_mrst_platform_remove), .shutdown = vrtc_mrst_platform_shutdown, .driver = { @@ -536,7 +535,8 @@ static struct platform_driver vrtc_mrst_platform_driver = { static int __init vrtc_mrst_init(void) { - return platform_driver_register(&vrtc_mrst_platform_driver); + return platform_driver_probe(&vrtc_mrst_platform_driver, + vrtc_mrst_platform_probe); } static void __exit vrtc_mrst_exit(void)