Message ID | 013f01ce18ae$3dbff710$b93fe530$%han@samsung.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <rtc-linux+bncBDTJ5LFEQQCBB5NI2GEQKGQEC4PRVLQ@googlegroups.com> 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 2DC332C0309 for <incoming@patchwork.ozlabs.org>; Mon, 4 Mar 2013 18:59:51 +1100 (EST) Received: by mail-qe0-f60.google.com with SMTP id a11sf2575234qen.25 for <incoming@patchwork.ozlabs.org>; Sun, 03 Mar 2013 23:59:49 -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=Pn++aXv2ygWWKe+3xBkG1Gl+1FSUtGhRpSand+mYpuQ=; b=lP0RQupYdTOOtdmyMDnfrvEvsWI4+CbHd5A9AOt2u0qHJSy3lffz1J0kIb5na3B+q0 k9vOuLcifUsnPp+dmBUHxXnZLdJQoBMt2E/OJoc3Q9fQJtPusL1tZXkiGFWmgetmJTgz 45PJzINE2j8xzAWYphK8fqVuYOGgMo3ngc8rq/Xei4Dl1gU3DB2UB7z+1l6qR18t/ls6 In3uum7Gi6foVuV2ibJqtI0QrfAhMSVlGY7R2ZNBd+zJ+NDDDeLSNDMAg08DPmjzCRHi AJ786tr6wXxqMkut/w19z1UWSUuqycXH5PyeriDkELK28F4uBwKDgBFfWK0oWqhyhSfq 83Ww== X-Received: by 10.50.163.41 with SMTP id yf9mr250232igb.3.1362383989388; Sun, 03 Mar 2013 23:59:49 -0800 (PST) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.213.42 with SMTP id np10ls363196igc.32.gmail; Sun, 03 Mar 2013 23:59:49 -0800 (PST) X-Received: by 10.66.52.17 with SMTP id p17mr3174469pao.29.1362383989166; Sun, 03 Mar 2013 23:59:49 -0800 (PST) X-Received: by 10.66.52.17 with SMTP id p17mr3174468pao.29.1362383989158; Sun, 03 Mar 2013 23:59:49 -0800 (PST) Received: from mailout3.samsung.com (mailout3.samsung.com. [203.254.224.33]) by gmr-mx.google.com with ESMTP id c2si4796816pax.2.2013.03.03.23.59.48; Sun, 03 Mar 2013 23:59:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of jg1.han@samsung.com designates 203.254.224.33 as permitted sender) client-ip=203.254.224.33; Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MJ400HT2M7M3550@mailout3.samsung.com> for rtc-linux@googlegroups.com; Mon, 04 Mar 2013 16:59:48 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 1C.0E.25214.47454315; Mon, 04 Mar 2013 16:59:48 +0900 (KST) X-AuditID: cbfee68e-b7fa46d00000627e-55-513454742a40 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 8D.AA.03918.37454315; Mon, 04 Mar 2013 16:59:48 +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 <0MJ400FHQM7NPM90@mmp2.samsung.com>; Mon, 04 Mar 2013 16:59:47 +0900 (KST) From: Jingoo Han <jg1.han@samsung.com> To: 'Andrew Morton' <akpm@linux-foundation.org> Cc: linux-kernel@vger.kernel.org, 'Alessandro Zummo' <a.zummo@towertech.it>, rtc-linux@googlegroups.com, 'Jingoo Han' <jg1.han@samsung.com> References: <013a01ce18ad$e45caa10$ad15fe30$%han@samsung.com> In-reply-to: <013a01ce18ad$e45caa10$ad15fe30$%han@samsung.com> Subject: [rtc-linux] [PATCH 06/24] rtc: rtc-davinci: use module_platform_driver_probe() Date: Mon, 04 Mar 2013 16:59:47 +0900 Message-id: <013f01ce18ae$3dbff710$b93fe530$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4YreQ8fe1F97iqQuy+DT8iOTwTtAAAExwg X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOIsWRmVeSWpSXmKPExsVy+t8zQ92SEJNAg3NHuSyWXLzKbjFn/Ro2 i8sLL7FaXN41h81if2cHowOrx56JJ9k8Tsz4zeLRt2UVo8f0eT+ZPD5vkgtgjeKySUnNySxL LdK3S+DKOPjyOWvBY/aKj2tXsDYw3mLrYuTkkBAwkdj97ysrhC0mceHeeqA4F4eQwDJGiaZp L9hhil7uvs8MYgsJTGeUuPnZEKLoF6PE7bPTwBJsAmoSX74cBmrg4BAR0Jdoa9EAqWEW6GWU ONO7mx2i2Vbiy8MHTCA2p4CdxP1zq8A2Cwt4S3RO+wRmswioSjTfbga7jheovu3YSnYIW1Di x+R7LCA2s4CWxPqdx5kgbHmJzWveMoPslRBQl3j0VxckLCJgJHFo1ndWiBIRiX0v3jGC3CMh cI9d4vKVdkaIXQIS3yYfYoHolZXYdIAZ4l9JiYMrbrBMYJSYhWTzLCSbZyHZPAvJigWMLKsY RVMLkguKk9KLjPSKE3OLS/PS9ZLzczcxQiK1bwfjzQPWhxiTgdZPZJYSTc4HRnpeSbyhsbGJ mYmpibmlqbkpacJK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bsRM/RTbdM8l3vdKTNevLygGLWVO/7b7xjElTU7aLOPngzX0Jz 4/mME0pnNpj6P3hv+EE9+NQsl3o3/xuvDp86KOtfq8RSnJFoqMVcVJwIAFIzagpHAwAA 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.33 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: <rtc-linux.googlegroups.com> X-Google-Group-Id: 712029733259 List-Post: <http://groups.google.com/group/rtc-linux/post?hl=en_US>, <mailto:rtc-linux@googlegroups.com> List-Help: <http://groups.google.com/support/?hl=en_US>, <mailto:rtc-linux+help@googlegroups.com> List-Archive: <http://groups.google.com/group/rtc-linux?hl=en_US> Sender: rtc-linux@googlegroups.com List-Subscribe: <http://groups.google.com/group/rtc-linux/subscribe?hl=en_US>, <mailto:rtc-linux+subscribe@googlegroups.com> List-Unsubscribe: <http://groups.google.com/group/rtc-linux/subscribe?hl=en_US>, <mailto:googlegroups-manage+712029733259+unsubscribe@googlegroups.com> Content-type: text/plain; charset=ISO-8859-1 Content-language: ko |
diff --git a/drivers/rtc/rtc-davinci.c b/drivers/rtc/rtc-davinci.c index db877e0..1b0f9322 100644 --- a/drivers/rtc/rtc-davinci.c +++ b/drivers/rtc/rtc-davinci.c @@ -588,17 +588,7 @@ static struct platform_driver davinci_rtc_driver = { }, }; -static int __init rtc_init(void) -{ - return platform_driver_probe(&davinci_rtc_driver, davinci_rtc_probe); -} -module_init(rtc_init); - -static void __exit rtc_exit(void) -{ - platform_driver_unregister(&davinci_rtc_driver); -} -module_exit(rtc_exit); +module_platform_driver_probe(davinci_rtc_driver, davinci_rtc_probe); MODULE_AUTHOR("Miguel Aguilar <miguel.aguilar@ridgerun.com>"); MODULE_DESCRIPTION("Texas Instruments DaVinci PRTC Driver");
This patch uses module_platform_driver_probe() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han <jg1.han@samsung.com> --- drivers/rtc/rtc-davinci.c | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-)