From patchwork Thu Feb 28 08:45:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 223833 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-yh0-x23a.google.com (mail-yh0-x23a.google.com [IPv6:2607:f8b0:4002:c01::23a]) (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 DA3372C008C for ; Thu, 28 Feb 2013 19:45:42 +1100 (EST) Received: by mail-yh0-f58.google.com with SMTP id 47sf663805yhr.3 for ; Thu, 28 Feb 2013 00:45:40 -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=JOodCFFCBVlDTg5JlQlGOOdrJ8mapp25CFxcQXuwfJM=; b=DsUA3T7JQNZN9spAO9fykZFQHAsrtFA0n3e9eTwFRUj+Kzsc/tpx9uBZQWnVIX/kfm /Pc3C5ZkI9RKx6RNXkrCa9crGh8e7PqUPHIt3INmBPy4VlyEAnnRwEgH9houZ0QIh3UR S3cZwq5xy22omdyyDmWEpXRP9Zdyz8IQhd/7zhJ2Px1qLDZlch383QL/WJOzAD0KMV0i w025R0a+uKZoZRKrXhDIfeGLoj7IzyoLY/qHBb4qxgV7XzwWxknLCWL0Z2OGo69K0u+h GoyycrRG57QroM9v1hNb1slFOpH3DoCflyYc7vNCRX0NA8zQntVubZS3Ic2whoE82YPi SfzA== X-Received: by 10.50.163.41 with SMTP id yf9mr940299igb.3.1362041140076; Thu, 28 Feb 2013 00:45:40 -0800 (PST) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.151.145 with SMTP id uq17ls1768973igb.31.canary; Thu, 28 Feb 2013 00:45:39 -0800 (PST) X-Received: by 10.66.72.3 with SMTP id z3mr1784324pau.40.1362041139597; Thu, 28 Feb 2013 00:45:39 -0800 (PST) X-Received: by 10.66.72.3 with SMTP id z3mr1784322pau.40.1362041139587; Thu, 28 Feb 2013 00:45:39 -0800 (PST) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by gmr-mx.google.com with ESMTP id d9si1780561paw.0.2013.02.28.00.45.39; Thu, 28 Feb 2013 00:45:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of jg1.han@samsung.com designates 203.254.224.25 as permitted sender) client-ip=203.254.224.25; Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MIX00JCB9O0QVC0@mailout2.samsung.com> for rtc-linux@googlegroups.com; Thu, 28 Feb 2013 17:45:38 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.49]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 15.46.18793.2391F215; Thu, 28 Feb 2013 17:45:38 +0900 (KST) X-AuditID: cbfee68f-b7f6a6d000004969-be-512f19325e01 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 6D.76.03880.2391F215; Thu, 28 Feb 2013 17:45:38 +0900 (KST) Received: from DOJG1HAN02 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MIX00LJ79O2A180@mmp1.samsung.com> for rtc-linux@googlegroups.com; Thu, 28 Feb 2013 17:45:38 +0900 (KST) From: Jingoo Han To: 'Andrew Morton' Cc: linux-kernel@vger.kernel.org, 'Alessandro Zummo' , rtc-linux@googlegroups.com, 'Jingoo Han' References: <00a501ce158e$ef171610$cd454230$%han@samsung.com> In-reply-to: <00a501ce158e$ef171610$cd454230$%han@samsung.com> Subject: [rtc-linux] [PATCH 17/19] rtc: rtc-generic: remove erroneous __init/__exit annotations Date: Thu, 28 Feb 2013 17:45:38 +0900 Message-id: <00b501ce158f$fb855910$f2900b30$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4Vju7DHmrOxtsNRmyyH1DU6RVYuAAAP8CQ X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPIsWRmVeSWpSXmKPExsVy+t8zQ10jSf1Ag4l/NC32d3YwOjB67Jl4 ki2AMYrLJiU1J7MstUjfLoEr4++ceewFc7krdrUfZWlgXM/ZxcjJISFgIrHj7FMWCFtM4sK9 9WxdjFwcQgLLGCV2tL9j7WLkACs6MVsYIr6IUWLp8unsIA1CAjOZJJ590QSx2QTUJL58OcwO Ui8ioC/R1qIBUs8s0MsocaZ3N1S9rcSxtjawZZwCdhK/nx5lBbGFBUIlLl1/AWazCKhKNP3o ZwSxeYHqT084yg5hC0r8mHwPrJdZQEti/c7jTBC2vMTmNW+ZIe5Ul3j0VxckLCJgJLF78iyo EhGJfS/eMYLcIyGwiF3idfsnFohdAhLfJh9igeiVldh0gBkSDpISB1fcYJnAKDELyeZZSDbP QrJ5FpIVCxhZVjGKphYkFxQnpRcZ6xUn5haX5qXrJefnbmKERFb/Dsa7B6wPMSYDrZ/ILCWa nA+MzLySeENjYxMzE1MTc0tTc1PShJXEeeUvyQQKCaQnlqRmp6YWpBbFF5XmpBYfYmTi4JRq YDy+OmF7y2TeP1klk4peaU/9Of1u4IeNXEsnbs1peKZ2asKumtmlOYHpvy68u/2tOXiev5jF 64uNbw5zLdvVUrs+IFzIUcr7220bi3f/rp49a/1n0sqPvZIl985yMeuLLDQK5Lula3xxeRh/ 8kXjis0b36jYZtaFm4qbcTi3vpv86NrDPJsNahJKLMUZiYZazEXFiQAax43TwgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphleLIzCtJLcpLzFFi42I5/e+xgK6RpH6gwYouNYv9nR2MDoweeyae ZAtgjGpgtMlITUxJLVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLxCdB1y8wB GqukUJaYUwoUCkgsLlbSt8M0ITTETdcCpjFC1zckCK7HyAANJKxjzPg7Zx57wVzuil3tR1ka GNdzdjFycEgImEicmC3cxcgJZIpJXLi3nq2LkYtDSGARo8TS5dPZQRJCAjOZJJ590QSx2QTU JL58OcwO0isioC/R1qIBUs8s0MsocaZ3N1S9rcSxtjYWEJtTwE7i99OjrCC2sECoxKXrL8Bs FgFViaYf/YwgNi9Q/ekJR9khbEGJH5PvgfUyC2hJrN95nAnClpfYvOYtM8TN6hKP/uqChEUE jCR2T54FVSIise/FO8YJjEKzkEyahWTSLCSTZiFpWcDIsopRNLUguaA4KT3XSK84Mbe4NC9d Lzk/dxMjOG6fSe9gXNVgcYhRgINRiYe3w0QvUIg1say4MvcQowQHs5IIrwu/fqAQb0piZVVq UX58UWlOavEhxmSgRycyS4km5wNTSl5JvKGxiZmRpZGZhZGJuTlpwkrivIynngQICaQnlqRm p6YWpBbBbGHi4JRqYFRaJf2cp070Iau4Wfj94/sEPPgNmnMkwnTS1k3anPbl/vU9V3icXobG RHknZWzL1f/53PL95voDJmoCoS/PV3NuKZcvyOxJmvQzknmT/6M9VzS2xTCubp7ZlJzdH6vk 2r7s/788XaPyOw7nJkzJYVBtnO6+xX4y9zyTiQJbWG5PvSDtc9SjRImlOCPRUIu5qDgRAKTH g5sfAwAA 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.25 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 __init/__exit annotations for probe()/remove() are supposed to be __devinit/__devexit, because __init/__exit for probe()/remove() are not correct. However, __devinit/__devexit are not used, because CONFIG_HOTPLUG was removed. Thus, these annotations should be removed. Signed-off-by: Jingoo Han --- drivers/rtc/rtc-generic.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-generic.c b/drivers/rtc/rtc-generic.c index 98322004..f7fd59a 100644 --- a/drivers/rtc/rtc-generic.c +++ b/drivers/rtc/rtc-generic.c @@ -34,7 +34,7 @@ static const struct rtc_class_ops generic_rtc_ops = { .set_time = generic_set_time, }; -static int __init generic_rtc_probe(struct platform_device *dev) +static int generic_rtc_probe(struct platform_device *dev) { struct rtc_device *rtc; @@ -48,7 +48,7 @@ static int __init generic_rtc_probe(struct platform_device *dev) return 0; } -static int __exit generic_rtc_remove(struct platform_device *dev) +static int generic_rtc_remove(struct platform_device *dev) { struct rtc_device *rtc = platform_get_drvdata(dev); @@ -62,7 +62,7 @@ static struct platform_driver generic_rtc_driver = { .name = "rtc-generic", .owner = THIS_MODULE, }, - .remove = __exit_p(generic_rtc_remove), + .remove = generic_rtc_remove, }; static int __init generic_rtc_init(void)