From patchwork Thu Feb 28 10:40:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 223874 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-qe0-f60.google.com (mail-qe0-f60.google.com [209.85.128.60]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 144622C029D for ; Thu, 28 Feb 2013 21:40:19 +1100 (EST) Received: by mail-qe0-f60.google.com with SMTP id a11sf675275qen.25 for ; Thu, 28 Feb 2013 02:40:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-received:x-beenthere:x-received:x-received:received-spf:x-auditid :from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:x-mailer:thread-index:x-brightmail-tracker :x-brightmail-tracker:dlp-filter:x-mtr:x-cfilter-loop :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:content-language; bh=5EkCGsecCuUFhURpHO7Sc5JvOQt/WWkeoD1jJWH3eAk=; b=YnI08Aev3fBNjeKyIPg8U11J5NS+dHCeB4VdDnbfO+ssGXNHOIx8T7CXSUr9qIUB6o Cwcx58DOpqFLKexMLkMWuEyjZg/baDfa0Wnn9Nnl+0bMfmjflKia+VFKbGqSvVjjwQyE K5piOOOzLiL1e4ID132ouWXWxCi853lC9REW2Iw+SVq5E0Ai9RMjd9nlVRIt3sfd5nlm X2Nh9t4TIZjuXKtCG1cenDCpaBtU1oLhg383XQWhNqdCtx9OQ7zgF/tzQew5B9Uk9rsD Y+4fnqS7NzyOc1tPu3u0hp4d8germU/8zL30LVyLRHuTaXWM3bWAamOPbL/vE8YMvyea 2+4Q== X-Received: by 10.50.217.161 with SMTP id oz1mr2906390igc.3.1362048017538; Thu, 28 Feb 2013 02:40:17 -0800 (PST) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.104.232 with SMTP id gh8ls1191526igb.20.canary; Thu, 28 Feb 2013 02:40:17 -0800 (PST) X-Received: by 10.68.196.134 with SMTP id im6mr1270181pbc.5.1362048016981; Thu, 28 Feb 2013 02:40:16 -0800 (PST) X-Received: by 10.68.196.134 with SMTP id im6mr1270180pbc.5.1362048016970; Thu, 28 Feb 2013 02:40:16 -0800 (PST) Received: from mailout1.samsung.com (mailout1.samsung.com. [203.254.224.24]) by gmr-mx.google.com with ESMTP id d9si1839320paw.0.2013.02.28.02.40.16; Thu, 28 Feb 2013 02:40:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of jg1.han@samsung.com designates 203.254.224.24 as permitted sender) client-ip=203.254.224.24; Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MIX00IVFEZ01CF0@mailout1.samsung.com> for rtc-linux@googlegroups.com; Thu, 28 Feb 2013 19:40:16 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 57.CE.18793.0143F215; Thu, 28 Feb 2013 19:40:16 +0900 (KST) X-AuditID: cbfee68f-b7f6a6d000004969-1a-512f341020a2 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 24.09.03918.F043F215; Thu, 28 Feb 2013 19:40:15 +0900 (KST) Received: from DOJG1HAN02 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MIX000JFEZ36530@mmp2.samsung.com>; Thu, 28 Feb 2013 19:40:15 +0900 (KST) From: Jingoo Han To: 'Andrew Morton' Cc: linux-kernel@vger.kernel.org, 'Alessandro Zummo' , rtc-linux@googlegroups.com, 'Jingoo Han' References: <000901ce159f$94e48270$bead8750$%han@samsung.com> In-reply-to: <000901ce159f$94e48270$bead8750$%han@samsung.com> Subject: [rtc-linux] [PATCH 7/7] rtc: rtc-tegra: add __init/__exit annotation Date: Thu, 28 Feb 2013 19:40:15 +0900 Message-id: <000f01ce159f$fec01e70$fc405b50$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4Vn5THVyS/kU1xRpiO8bTmT1G2WgAAFYbA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKIsWRmVeSWpSXmKPExsVy+t8zI10BE/1Ag/l3mC2WXLzKbjFn/Ro2 i8sLL7FaXN41h81if2cHowOrx56JJ9k8Tsz4zeLRt2UVo8f0eT+ZPD5vkgtgjeKySUnNySxL LdK3S+DKOPvhAnPBVa6KF9132RsYv3F0MXJySAiYSJzfupsVwhaTuHBvPRuILSSwjFHi9Mzo LkYOsJqp9wW7GLmAwtMZJX6eucwG4fxilDh3fStYM5uAmsSXL4fZQRpEBPQl2lo0QGqYBXoZ Jc707maHGGorsaq7FayeU8BOYs/8Sawg9cICjhJrf/KAhFkEVCW+d69lAbF5gcrndn5jhrAF JX5MvgcWZxbQkti8rYkVwpaX2LzmLTPEneoSj/7qgoRFBIwkvi+7DFUiIrHvxTtGkHMkBO6x S5zvmckCsUtA4tvkQywQvbISmw4wQ4JBUuLgihssExglZiHZPAvJ5llINs9CsmIBI8sqRtHU guSC4qT0ImO94sTc4tK8dL3k/NxNjJAo7d/BePeA9SHGZKD1E5mlRJPzgVGeVxJvaGxsYmZi amJuaWpuSpqwkjiv/CWZQCGB9MSS1OzU1ILUovii0pzU4kOMTBycUg2Me14enLUw5P2Kix1Z 8mYPfv65LRNeb81ovfn7zo9qe7OYfhp8W+J+Zad8wp0Hofmfvzw133FeMOdx2KRZX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FiQD4O1dxRgMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Original-Sender: jg1.han@samsung.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of jg1.han@samsung.com designates 203.254.224.24 as permitted sender) smtp.mail=jg1.han@samsung.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: , Content-type: text/plain; charset=ISO-8859-1 Content-language: ko When platform_driver_probe() is used, bind/unbind via sysfs is disabled. Thus, __init/__exit annotations can be added to probe()/remove(). Signed-off-by: Jingoo Han --- drivers/rtc/rtc-tegra.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-tegra.c b/drivers/rtc/rtc-tegra.c index 7c03375..0020bab 100644 --- a/drivers/rtc/rtc-tegra.c +++ b/drivers/rtc/rtc-tegra.c @@ -309,7 +309,7 @@ static const struct of_device_id tegra_rtc_dt_match[] = { }; MODULE_DEVICE_TABLE(of, tegra_rtc_dt_match); -static int tegra_rtc_probe(struct platform_device *pdev) +static int __init tegra_rtc_probe(struct platform_device *pdev) { struct tegra_rtc_info *info; struct resource *res; @@ -379,7 +379,7 @@ err_dev_unreg: return ret; } -static int tegra_rtc_remove(struct platform_device *pdev) +static int __exit tegra_rtc_remove(struct platform_device *pdev) { struct tegra_rtc_info *info = platform_get_drvdata(pdev); @@ -439,7 +439,7 @@ static void tegra_rtc_shutdown(struct platform_device *pdev) MODULE_ALIAS("platform:tegra_rtc"); static struct platform_driver tegra_rtc_driver = { - .remove = tegra_rtc_remove, + .remove = __exit_p(tegra_rtc_remove), .shutdown = tegra_rtc_shutdown, .driver = { .name = "tegra_rtc",